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:
Eric Engestrom
2022-11-10 11:36:46 +00:00
committed by Marge Bot
parent f7d7e558c9
commit 4a14ba6fce
3 changed files with 37 additions and 9 deletions
+6
View File
@@ -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 {