aboutsummaryrefslogtreecommitdiff
path: root/zenserver/cache/structuredcache.cpp
diff options
context:
space:
mode:
authorPer Larsson <[email protected]>2021-12-15 20:12:41 +0100
committerPer Larsson <[email protected]>2021-12-15 20:12:41 +0100
commit9313768464789551f287304eadb2fb3f139cdf18 (patch)
tree2e0da7e5ac6217b0d587b297f2827fede4379b7c /zenserver/cache/structuredcache.cpp
parentUpdated readme. (diff)
downloadzen-9313768464789551f287304eadb2fb3f139cdf18.tar.xz
zen-9313768464789551f287304eadb2fb3f139cdf18.zip
Added trace scopes.
Diffstat (limited to 'zenserver/cache/structuredcache.cpp')
-rw-r--r--zenserver/cache/structuredcache.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/zenserver/cache/structuredcache.cpp b/zenserver/cache/structuredcache.cpp
index ebf6298a4..47ac9f6e7 100644
--- a/zenserver/cache/structuredcache.cpp
+++ b/zenserver/cache/structuredcache.cpp
@@ -7,6 +7,7 @@
#include <zencore/compactbinarypackage.h>
#include <zencore/compactbinaryvalidation.h>
#include <zencore/compress.h>
+#include <zencore/trace.h>
#include <zencore/fmtutils.h>
#include <zencore/logging.h>
#include <zencore/scopeguard.h>
@@ -810,6 +811,8 @@ HttpStructuredCacheService::HandleRpcRequest(zen::HttpServerRequest& Request)
void
HttpStructuredCacheService::HandleRpcGetCacheRecords(zen::HttpServerRequest& Request, CbObjectView RpcRequest)
{
+ ZEN_TRACE_CPU("Z$::RpcGetCacheRecords");
+
using namespace fmt::literals;
CbPackage RpcResponse;
@@ -1006,6 +1009,8 @@ HttpStructuredCacheService::HandleRpcGetCacheRecords(zen::HttpServerRequest& Req
void
HttpStructuredCacheService::HandleRpcGetCachePayloads(zen::HttpServerRequest& Request, CbObjectView RpcRequest)
{
+ ZEN_TRACE_CPU("Z$::RpcGetCachePayloads");
+
using namespace fmt::literals;
ZEN_ASSERT(RpcRequest["Method"sv].AsString() == "GetCachePayloads"sv);