summaryrefslogtreecommitdiff
path: root/apps/debug_menu.c
diff options
context:
space:
mode:
authorMiika Pekkarinen <miipekk@ihme.org>2006-04-23 18:47:26 +0000
committerMiika Pekkarinen <miipekk@ihme.org>2006-04-23 18:47:26 +0000
commit4142710a474df990342ac3fba2b00322635c56e9 (patch)
tree84996b2c8596e318f9eeab8cd770311bee839d98 /apps/debug_menu.c
parent3f7292e13a71cfeb2258e4aefba8685cd9a882fc (diff)
downloadrockbox-4142710a474df990342ac3fba2b00322635c56e9.zip
rockbox-4142710a474df990342ac3fba2b00322635c56e9.tar.gz
rockbox-4142710a474df990342ac3fba2b00322635c56e9.tar.bz2
rockbox-4142710a474df990342ac3fba2b00322635c56e9.tar.xz
Much faster optimized version of tagcache commit. Added a few items to
the debug menu (still buggy) and fixed a problem with partial tagcache updates. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9775 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/debug_menu.c')
-rw-r--r--apps/debug_menu.c18
1 files changed, 16 insertions, 2 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c
index 0851658..9c8fdcd 100644
--- a/apps/debug_menu.c
+++ b/apps/debug_menu.c
@@ -1883,6 +1883,7 @@ static bool dbg_tagcache_info(void)
bool done = false;
int line;
char buf[32];
+ struct tagcache_stat *stat;
lcd_setmargins(0, 0);
lcd_setfont(FONT_SYSFIXED);
@@ -1892,8 +1893,21 @@ static bool dbg_tagcache_info(void)
line = 0;
lcd_clear_display();
- snprintf(buf, sizeof(buf), "Current progress: %d%%",
- tagcache_get_progress());
+ stat = tagcache_get_stat();
+ snprintf(buf, sizeof(buf), "Busy: %s", stat->initialized ? "No" : "Yes");
+ lcd_puts(0, line++, buf);
+ snprintf(buf, sizeof(buf), "RAM Cache: %s", stat->ramcache ? "Yes" : "No");
+ lcd_puts(0, line++, buf);
+ snprintf(buf, sizeof(buf), "RAM: %d/%d B",
+ stat->ramcache_used, stat->ramcache_allocated);
+ lcd_puts(0, line++, buf);
+ snprintf(buf, sizeof(buf), "Progress: %d%% (%d entries)",
+ stat->progress, stat->processed_entries);
+ lcd_puts(0, line++, buf);
+ snprintf(buf, sizeof(buf), "Commit step: %d", stat->commit_step);
+ lcd_puts(0, line++, buf);
+ snprintf(buf, sizeof(buf), "Commit delayed: %s",
+ stat->commit_delayed ? "Yes" : "No");
lcd_puts(0, line++, buf);
lcd_update();