forked from len0rd/rockbox
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
This commit is contained in:
parent
57000b513b
commit
dac40fdd60
3 changed files with 135 additions and 2 deletions
12
apps/talk.h
12
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__ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue