diff options
| author | Thomas Martitz <kugel@rockbox.org> | 2013-07-02 08:24:00 +0200 |
|---|---|---|
| committer | Thomas Martitz <kugel@rockbox.org> | 2014-02-02 19:40:39 +0100 |
| commit | dac40fdd60872da55b60ae9912b31e6549f1cf4a (patch) | |
| tree | 76a0571260eb097d8936bd33edf15120dd2ef158 /apps/talk.h | |
| parent | 57000b513bd54b9dba3b308b7734c88962b81ae3 (diff) | |
| download | rockbox-dac40fdd60872da55b60ae9912b31e6549f1cf4a.zip rockbox-dac40fdd60872da55b60ae9912b31e6549f1cf4a.tar.gz rockbox-dac40fdd60872da55b60ae9912b31e6549f1cf4a.tar.bz2 rockbox-dac40fdd60872da55b60ae9912b31e6549f1cf4a.tar.xz | |
talk: Add debug menu entry to view statistics about talk engine.
This engine includes voicefile, memory usage and cache
hits/misses for TALK_PARTIAL_LOAD.
Change-Id: I331981ddda39ea30c57b4b74504accb3c556c3b9
Diffstat (limited to 'apps/talk.h')
| -rw-r--r-- | apps/talk.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/apps/talk.h b/apps/talk.h index 4da3a61..5ffc9ae 100644 --- a/apps/talk.h +++ b/apps/talk.h @@ -162,4 +162,16 @@ int talk_idarray(const long *idarray, bool enqueue); } \ }while(0) +struct talk_debug_data { + char voicefile[32]; + long memory_allocated, memory_used; + int num_clips, num_empty_clips; + int min_clipsize, avg_clipsize, max_clipsize; + int cached_clips; + int cache_hits; + int cache_misses; +}; + +bool talk_get_debug_data(struct talk_debug_data *data); + #endif /* __TALK_H__ */ |