aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2025-10-06 22:51:10 +0200
committerStefan Boberg <[email protected]>2025-10-06 22:51:10 +0200
commit001ad9649d468d37b7710e491d96930b424c499d (patch)
tree9885b874d7abc86744f0a95fc1425c8852ca8a86 /src
parentintegrated headers (diff)
downloadzen-001ad9649d468d37b7710e491d96930b424c499d.tar.xz
zen-001ad9649d468d37b7710e491d96930b424c499d.zip
added some progress indication
Diffstat (limited to 'src')
-rw-r--r--src/zen/cmds/rpcreplay_cmd.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/zen/cmds/rpcreplay_cmd.cpp b/src/zen/cmds/rpcreplay_cmd.cpp
index c3db08db1..61e7d61c8 100644
--- a/src/zen/cmds/rpcreplay_cmd.cpp
+++ b/src/zen/cmds/rpcreplay_cmd.cpp
@@ -586,6 +586,7 @@ RpcAnalyzeCommand::Run(const ZenCliOptions& GlobalOptions, int argc, char** argv
std::set<uint32_t> RequestMethods;
int MaxBatchSeen = 0;
+ uint64_t RequestsSeen = 0;
for (uint64_t EntryIndex = 0; EntryIndex < EntryCount; ++EntryIndex)
{
@@ -622,6 +623,13 @@ RpcAnalyzeCommand::Run(const ZenCliOptions& GlobalOptions, int argc, char** argv
continue;
}
+ ++RequestsSeen;
+
+ if (RequestsSeen % 100'000 == 0)
+ {
+ ZEN_CONSOLE("Requests: {:12}", RequestsSeen);
+ }
+
std::string_view MethodString = Request["Method"sv].AsString();
const uint32_t MethodHash = HashStringDjb2(MethodString);