More logging points
This commit is contained in:
@@ -91,10 +91,13 @@ void EpubReaderActivity::onEnter() {
|
|||||||
RenderLock lock(*this);
|
RenderLock lock(*this);
|
||||||
ReaderUtils::applyOrientation(renderer, SETTINGS.orientation);
|
ReaderUtils::applyOrientation(renderer, SETTINGS.orientation);
|
||||||
}
|
}
|
||||||
|
logReaderMemSnapshot("onEnter_after_orientation");
|
||||||
|
|
||||||
epub->setupCacheDir();
|
epub->setupCacheDir();
|
||||||
|
logReaderMemSnapshot("onEnter_after_setupCacheDir");
|
||||||
applyPendingSyncSession();
|
applyPendingSyncSession();
|
||||||
applyPendingBookmarkJump();
|
applyPendingBookmarkJump();
|
||||||
|
logReaderMemSnapshot("onEnter_after_pending_sync");
|
||||||
|
|
||||||
FsFile f;
|
FsFile f;
|
||||||
if (Storage.openFileForRead("ERS", epub->getCachePath() + "/progress.bin", f)) {
|
if (Storage.openFileForRead("ERS", epub->getCachePath() + "/progress.bin", f)) {
|
||||||
@@ -120,9 +123,11 @@ void EpubReaderActivity::onEnter() {
|
|||||||
LOG_DBG("ERS", "Opened for first time, navigating to text reference at index %d", textSpineIndex);
|
LOG_DBG("ERS", "Opened for first time, navigating to text reference at index %d", textSpineIndex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
logReaderMemSnapshot("onEnter_after_progress_load");
|
||||||
|
|
||||||
// Load bookmarks for this book
|
// Load bookmarks for this book
|
||||||
bookmarkStore.load(epub->getCachePath());
|
bookmarkStore.load(epub->getCachePath());
|
||||||
|
logReaderMemSnapshot("onEnter_after_bookmarks_loaded");
|
||||||
|
|
||||||
// Save current epub as last opened epub and add to recent books
|
// Save current epub as last opened epub and add to recent books
|
||||||
APP_STATE.openEpubPath = epub->getPath();
|
APP_STATE.openEpubPath = epub->getPath();
|
||||||
@@ -135,8 +140,10 @@ void EpubReaderActivity::onEnter() {
|
|||||||
const RecentBook currentBook = RECENT_BOOKS.getBookByPath(epub->getPath());
|
const RecentBook currentBook = RECENT_BOOKS.getBookByPath(epub->getPath());
|
||||||
bookEmbeddedStyleOverride = currentBook.embeddedStyleOverride;
|
bookEmbeddedStyleOverride = currentBook.embeddedStyleOverride;
|
||||||
bookImageRenderingOverride = currentBook.imageRenderingOverride;
|
bookImageRenderingOverride = currentBook.imageRenderingOverride;
|
||||||
|
logReaderMemSnapshot("onEnter_after_recent_books");
|
||||||
|
|
||||||
// Trigger first update
|
// Trigger first update
|
||||||
|
logReaderMemSnapshot("onEnter_before_request_update");
|
||||||
requestUpdate();
|
requestUpdate();
|
||||||
logReaderMemSnapshot("onEnter_ready");
|
logReaderMemSnapshot("onEnter_ready");
|
||||||
}
|
}
|
||||||
@@ -1095,6 +1102,7 @@ void EpubReaderActivity::renderContents(std::unique_ptr<Page> page, const int or
|
|||||||
logReaderMemSnapshot("render_start");
|
logReaderMemSnapshot("render_start");
|
||||||
auto* fcm = renderer.getFontCacheManager();
|
auto* fcm = renderer.getFontCacheManager();
|
||||||
fcm->resetStats();
|
fcm->resetStats();
|
||||||
|
logReaderMemSnapshot("prewarm_begin");
|
||||||
|
|
||||||
// Font prewarm: scan pass accumulates text, then prewarm, then real render
|
// Font prewarm: scan pass accumulates text, then prewarm, then real render
|
||||||
const uint32_t heapBefore = esp_get_free_heap_size();
|
const uint32_t heapBefore = esp_get_free_heap_size();
|
||||||
|
|||||||
Reference in New Issue
Block a user