aboutsummaryrefslogtreecommitdiff
path: root/zen/zen.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2023-04-21 09:22:03 +0200
committerGitHub <[email protected]>2023-04-21 09:22:03 +0200
commitcda7cb764af09d90c5a1e5fd2a4e55f43e59581a (patch)
tree44b29ffd2d15f340d711eadacdc594e1af60492a /zen/zen.cpp
parentMerge branch 'main' of https://github.com/EpicGames/zen (diff)
downloadarchived-zen-cda7cb764af09d90c5a1e5fd2a4e55f43e59581a.tar.xz
archived-zen-cda7cb764af09d90c5a1e5fd2a4e55f43e59581a.zip
oplog and cache stats (#244)
* basic oplog stats * add GetValueStats to cache store * RwLock::ExclusiveLockScope -> RwLock::SharedLockScope * add rawhash and attachment count to CacheValueStats * added cache-stats and project-stats commands * add cast to make Mac overload detection happy * fix accept type in cache-stats command * Add options to project-stats command * use resource paths for stats in project store * use resource paths for stats in cache * fix cache-info and project-info url discriminator * more control over details$ output * cleanup * changelog
Diffstat (limited to 'zen/zen.cpp')
-rw-r--r--zen/zen.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/zen/zen.cpp b/zen/zen.cpp
index e72619fdc..5a34ffa80 100644
--- a/zen/zen.cpp
+++ b/zen/zen.cpp
@@ -212,7 +212,10 @@ main(int argc, char** argv)
TopCommand TopCmd;
UpCommand UpCmd;
VersionCommand VersionCmd;
-
+ CacheStatsCommand CacheStatsCmd;
+ CacheDetailsCommand CacheDetailsCmd;
+ ProjectStatsCommand ProjectStatsCmd;
+ ProjectDetailsCommand ProjectDetailsCmd;
#if ZEN_WITH_TESTS
RunTestsCommand RunTestsCmd;
#endif
@@ -249,6 +252,10 @@ main(int argc, char** argv)
{"top", &TopCmd, "Monitor zen server activity"},
{"up", &UpCmd, "Bring zen server up"},
{"version", &VersionCmd, "Get zen server version"},
+ {"cache-stats", &CacheStatsCmd, "Stats on cache"},
+ {"cache-details", &CacheDetailsCmd, "Details on cache"},
+ {"project-stats", &ProjectStatsCmd, "Stats on project store"},
+ {"project-details", &ProjectDetailsCmd, "Details on project store"},
#if ZEN_WITH_TESTS
{"runtests", &RunTestsCmd, "Run zen tests"},
#endif