disk_cache: add env var to show stats
Signed-off-by: Eric Engestrom <eric@igalia.com> Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Reviewed-by: Emma Anholt <emma@anholt.net> Tested-by: Chris Healy <healych@amazon.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19644>
This commit is contained in:
committed by
Marge Bot
parent
f7d7e558c9
commit
4a14ba6fce
@@ -87,6 +87,12 @@ struct disk_cache {
|
||||
|
||||
/* Don't compress cached data. This is for testing purposes only. */
|
||||
bool compression_disabled;
|
||||
|
||||
struct {
|
||||
bool enabled;
|
||||
unsigned hits;
|
||||
unsigned misses;
|
||||
} stats;
|
||||
};
|
||||
|
||||
struct cache_entry_file_data {
|
||||
|
||||
Reference in New Issue
Block a user