From 376ba6bf28792971275e9f56181f4b5230b05066 Mon Sep 17 00:00:00 2001 From: Stefan Boberg Date: Wed, 11 Dec 2024 12:58:21 +0100 Subject: 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 --- src/zenserver/cache/httpstructuredcache.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/zenserver/cache/httpstructuredcache.cpp') 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(); -- cgit v1.2.3