Show the watermark in the "Show buffering thread" screen (in bytes).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20096 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
25b4334654
commit
fcbfef8175
3 changed files with 5 additions and 1 deletions
|
@ -1489,4 +1489,5 @@ void buffering_get_debugdata(struct buffering_debug *dbgdata)
|
|||
dbgdata->wasted_space = data_counters.wasted;
|
||||
dbgdata->buffered_data = data_counters.buffered;
|
||||
dbgdata->useful_data = data_counters.useful;
|
||||
dbgdata->watermark = conf_watermark;
|
||||
}
|
||||
|
|
|
@ -111,7 +111,6 @@ enum {
|
|||
};
|
||||
void buf_set_watermark(size_t bytes);
|
||||
|
||||
|
||||
/* Debugging */
|
||||
struct buffering_debug {
|
||||
int num_handles;
|
||||
|
@ -119,6 +118,7 @@ struct buffering_debug {
|
|||
size_t wasted_space;
|
||||
size_t data_rem;
|
||||
size_t useful_data;
|
||||
size_t watermark;
|
||||
};
|
||||
void buffering_get_debugdata(struct buffering_debug *dbgdata);
|
||||
|
||||
|
|
|
@ -392,6 +392,9 @@ static bool dbg_buffering_thread(void)
|
|||
snprintf(buf, sizeof(buf), "pcmbufdesc: %2d/%2d",
|
||||
pcmbuf_used_descs(), pcmbufdescs);
|
||||
lcd_puts(0, line++, buf);
|
||||
snprintf(buf, sizeof(buf), "watermark: %6d",
|
||||
(int)(d.watermark));
|
||||
lcd_puts(0, line++, buf);
|
||||
|
||||
lcd_update();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue