aboutsummaryrefslogtreecommitdiff
path: root/zenserver/config.cpp
diff options
context:
space:
mode:
authorPer Larsson <[email protected]>2021-09-23 17:24:56 +0200
committerPer Larsson <[email protected]>2021-09-23 17:24:56 +0200
commitcbf8832318cd47d6379884d622dbceca8dea3e8c (patch)
tree62310fd3b33f40cc9bbb9e454a05eb85a5fe1ca2 /zenserver/config.cpp
parentMerge branch 'main' of https://github.com/EpicGames/zen (diff)
downloadzen-cbf8832318cd47d6379884d622dbceca8dea3e8c.tar.xz
zen-cbf8832318cd47d6379884d622dbceca8dea3e8c.zip
Simpler upstream stats. Enabled with --upstream-stats.
Diffstat (limited to 'zenserver/config.cpp')
-rw-r--r--zenserver/config.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/zenserver/config.cpp b/zenserver/config.cpp
index c21638258..457a91e49 100644
--- a/zenserver/config.cpp
+++ b/zenserver/config.cpp
@@ -214,6 +214,13 @@ ParseGlobalCliOptions(int argc, char* argv[], ZenServerOptions& GlobalOptions, Z
cxxopts::value<int>(ServiceConfig.UpstreamCacheConfig.UpstreamThreadCount)->default_value("4"),
"");
+ options.add_option("cache",
+ "",
+ "upstream-stats",
+ "Collect performance metrics for upstream endpoints",
+ cxxopts::value<bool>(ServiceConfig.UpstreamCacheConfig.StatsEnabled)->default_value("false"),
+ "");
+
try
{
auto result = options.parse(argc, argv);