HDK
|
Statistics for the cache. More...
#include <FS_DiskCache.h>
Public Member Functions | |
Stats () | |
~Stats () | |
void | clearStats () |
void | fullClear () |
void | merge (const Stats &s) |
Merge stats from a different set of stats. More... | |
bool | loadFrom (const Accessor &fd) |
Load stats from a given file descriptor. More... | |
bool | saveTo (Accessor &a) const |
Write stats to the file descriptor. More... | |
void | addCacheHit () |
Update stats with a cache hit. More... | |
void | addToCache (const Accessor &a) |
Update stats from the given accessor. More... | |
int64 | rmFromCache (const Accessor &a, const char *filepath) |
Purge from the given accessor. More... | |
void | reset (int64 nfiles, int64 size) |
Reset the file count and size. More... | |
void | dump () const |
void | dump (UT_JSONWriter &w) const |
int64 | cacheHits () const |
int64 | cacheMiss () const |
int64 | cacheError () const |
int64 | purgeCount () const |
int64 | fileCount () const |
int64 | diskSize () const |
int64 | maxSize () const |
int64 | maxLogSize () const |
time_t | createTime () const |
time_t | lastRecompute () const |
Friends | |
class | FS_DiskCache |
Statistics for the cache.
Definition at line 127 of file FS_DiskCache.h.
|
inline |
Definition at line 130 of file FS_DiskCache.h.
|
inline |
Definition at line 134 of file FS_DiskCache.h.
|
inline |
Update stats with a cache hit.
Definition at line 185 of file FS_DiskCache.h.
|
inline |
Access statistics
Definition at line 169 of file FS_DiskCache.h.
|
inline |
Access statistics
Definition at line 167 of file FS_DiskCache.h.
|
inline |
Access statistics
Definition at line 168 of file FS_DiskCache.h.
|
inline |
Definition at line 136 of file FS_DiskCache.h.
|
inline |
Access statistics
Definition at line 175 of file FS_DiskCache.h.
|
inline |
Access statistics
Definition at line 172 of file FS_DiskCache.h.
void FS_DiskCache::Stats::dump | ( | ) | const |
void FS_DiskCache::Stats::dump | ( | UT_JSONWriter & | w | ) | const |
|
inline |
Access statistics
Definition at line 171 of file FS_DiskCache.h.
|
inline |
Definition at line 145 of file FS_DiskCache.h.
|
inline |
Access statistics
Definition at line 176 of file FS_DiskCache.h.
|
inline |
Access statistics
Definition at line 174 of file FS_DiskCache.h.
|
inline |
Access statistics
Definition at line 173 of file FS_DiskCache.h.
Merge stats from a different set of stats.
Definition at line 155 of file FS_DiskCache.h.
|
inline |
Access statistics
Definition at line 170 of file FS_DiskCache.h.
Reset the file count and size.
Definition at line 194 of file FS_DiskCache.h.
Purge from the given accessor.
bool FS_DiskCache::Stats::saveTo | ( | Accessor & | a | ) | const |
Write stats to the file descriptor.
|
friend |
Definition at line 210 of file FS_DiskCache.h.