aboutsummaryrefslogtreecommitdiff
path: root/src/zenserver/projectstore/httpprojectstore.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2024-12-16 15:37:47 +0100
committerGitHub Enterprise <[email protected]>2024-12-16 15:37:47 +0100
commit0cf7291ee2c4ae7461b4dcc082fb3778532e3df3 (patch)
tree7735061b5c242a34baea0b4497cbb9381efe76b3 /src/zenserver/projectstore/httpprojectstore.cpp
parent5.5.16 (diff)
downloadzen-0cf7291ee2c4ae7461b4dcc082fb3778532e3df3.tar.xz
zen-0cf7291ee2c4ae7461b4dcc082fb3778532e3df3.zip
more memory tagging and fixes (#263)
This change adds more instrumentation for memory tracking, so that as little as possible comes through as Unknown in Insights analysis.
Diffstat (limited to 'src/zenserver/projectstore/httpprojectstore.cpp')
-rw-r--r--src/zenserver/projectstore/httpprojectstore.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/zenserver/projectstore/httpprojectstore.cpp b/src/zenserver/projectstore/httpprojectstore.cpp
index 09f4c7ee2..eb6407e1f 100644
--- a/src/zenserver/projectstore/httpprojectstore.cpp
+++ b/src/zenserver/projectstore/httpprojectstore.cpp
@@ -22,9 +22,9 @@ namespace zen {
const FLLMTag&
GetProjectHttpTag()
{
- static FLLMTag CacheHttpTag("http", FLLMTag("project"));
+ static FLLMTag _("http", FLLMTag("project"));
- return CacheHttpTag;
+ return _;
}
void
@@ -241,6 +241,8 @@ HttpProjectService::HttpProjectService(CidStore& Store, ProjectStore* Projects,
, m_StatsService(StatsService)
, m_AuthMgr(AuthMgr)
{
+ ZEN_MEMSCOPE(GetProjectHttpTag());
+
using namespace std::literals;
m_StatsService.RegisterHandler("prj", *this);