diff options
| author | Stefan Boberg <[email protected]> | 2025-06-11 16:33:43 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2025-06-11 16:33:43 +0200 |
| commit | 975484f66f809388953569893f51173e2b461ae8 (patch) | |
| tree | f7fb5c88356abf6802c41c9e08b67affc9a120dd /src/zenutil/include | |
| parent | remove support for v1 recording (diff) | |
| download | zen-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.h | 8 |
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(); |