aboutsummaryrefslogtreecommitdiff
path: root/src/zenutil/include
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2025-06-11 16:33:43 +0200
committerStefan Boberg <[email protected]>2025-06-11 16:33:43 +0200
commit975484f66f809388953569893f51173e2b461ae8 (patch)
treef7fb5c88356abf6802c41c9e08b67affc9a120dd /src/zenutil/include
parentremove support for v1 recording (diff)
downloadzen-975484f66f809388953569893f51173e2b461ae8.tar.xz
zen-975484f66f809388953569893f51173e2b461ae8.zip
added IRpcRequestAnalyzer
we'll want a different API for analysis so better to create a distinct interface rather than complicating the replay code
Diffstat (limited to 'src/zenutil/include')
-rw-r--r--src/zenutil/include/zenutil/cache/rpcrecording.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/zenutil/include/zenutil/cache/rpcrecording.h b/src/zenutil/include/zenutil/cache/rpcrecording.h
index f1ad35413..c63024141 100644
--- a/src/zenutil/include/zenutil/cache/rpcrecording.h
+++ b/src/zenutil/include/zenutil/cache/rpcrecording.h
@@ -35,8 +35,16 @@ public:
virtual RecordedRequestInfo GetRequest(uint64_t RequestIndex, IoBuffer& OutBuffer) = 0;
};
+class IRpcRequestAnalyzer
+{
+public:
+ virtual ~IRpcRequestAnalyzer() {}
+ virtual uint64_t GetRequestCount() const = 0;
+};
+
std::unique_ptr<cache::IRpcRequestRecorder> MakeDiskRequestRecorder(const std::filesystem::path& BasePath);
std::unique_ptr<cache::IRpcRequestReplayer> MakeDiskRequestReplayer(const std::filesystem::path& BasePath, bool InMemory);
+std::unique_ptr<cache::IRpcRequestAnalyzer> MakeDiskRequestAnalyzer(const std::filesystem::path& BasePath);
void rpcrecord_forcelink();