aboutsummaryrefslogtreecommitdiff
path: root/src/zenserver/cache/httpstructuredcache.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2024-12-11 12:58:21 +0100
committerGitHub Enterprise <[email protected]>2024-12-11 12:58:21 +0100
commit376ba6bf28792971275e9f56181f4b5230b05066 (patch)
tree1bda5193721f3a4270d8b4f97da23bd2c29c36fb /src/zenserver/cache/httpstructuredcache.cpp
parentreduce oplog job name (#261) (diff)
downloadzen-376ba6bf28792971275e9f56181f4b5230b05066.tar.xz
zen-376ba6bf28792971275e9f56181f4b5230b05066.zip
Memory tracking improvements (#262)
* added LLM tag to properly tag RPC allocations * annotated some more httpsys functions with memory tags * only emit memory scope events if the active tag is different from the new tag
Diffstat (limited to 'src/zenserver/cache/httpstructuredcache.cpp')
-rw-r--r--src/zenserver/cache/httpstructuredcache.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/zenserver/cache/httpstructuredcache.cpp b/src/zenserver/cache/httpstructuredcache.cpp
index fd116ba8e..925c7b42d 100644
--- a/src/zenserver/cache/httpstructuredcache.cpp
+++ b/src/zenserver/cache/httpstructuredcache.cpp
@@ -51,6 +51,8 @@ GetCacheHttpTag()
return CacheHttpTag;
}
+extern const FLLMTag& GetCacheRpcTag();
+
using namespace std::literals;
//////////////////////////////////////////////////////////////////////////
@@ -1647,6 +1649,8 @@ HttpStructuredCacheService::ReplayRequestRecorder(const CacheRequestContext& Co
void
HttpStructuredCacheService::HandleRpcRequest(HttpServerRequest& Request, std::string_view UriNamespace)
{
+ ZEN_MEMSCOPE(GetCacheRpcTag());
+
ZEN_TRACE_CPU("z$::Http::HandleRpcRequest");
const bool HasUpstream = m_UpstreamCache.IsActive();