diff options
| author | Dan Engelbrecht <[email protected]> | 2023-09-15 07:36:58 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-09-15 13:36:58 +0200 |
| commit | 6163987f858597e92e68a61ed35be35bd4e7a552 (patch) | |
| tree | 94e78c3865f7f288df041636f9471b5a1511792b /src/zenserver/cache/structuredcachestore.cpp | |
| parent | updated CHANGELOG.md release versions (diff) | |
| download | zen-6163987f858597e92e68a61ed35be35bd4e7a552.tar.xz zen-6163987f858597e92e68a61ed35be35bd4e7a552.zip | |
add more trace scopes (#362)
* more trace scopes
* Make sure ReplayLogEntries uses the correct size for oplog buffer
* changelog
Diffstat (limited to 'src/zenserver/cache/structuredcachestore.cpp')
| -rw-r--r-- | src/zenserver/cache/structuredcachestore.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/zenserver/cache/structuredcachestore.cpp b/src/zenserver/cache/structuredcachestore.cpp index 56e83eef2..2ba1f61bd 100644 --- a/src/zenserver/cache/structuredcachestore.cpp +++ b/src/zenserver/cache/structuredcachestore.cpp @@ -61,7 +61,7 @@ ZenCacheNamespace::~ZenCacheNamespace() bool ZenCacheNamespace::Get(std::string_view InBucket, const IoHash& HashKey, ZenCacheValue& OutValue) { - ZEN_TRACE_CPU("Z$::Get"); + ZEN_TRACE_CPU("Z$::Namespace::Get"); bool Ok = m_MemLayer.Get(InBucket, HashKey, OutValue); @@ -90,7 +90,7 @@ ZenCacheNamespace::Get(std::string_view InBucket, const IoHash& HashKey, ZenCach void ZenCacheNamespace::Put(std::string_view InBucket, const IoHash& HashKey, const ZenCacheValue& Value) { - ZEN_TRACE_CPU("Z$::Put"); + ZEN_TRACE_CPU("Z$::Namespace::Put"); // Store value and index @@ -152,6 +152,8 @@ ZenCacheNamespace::ScrubStorage(ScrubContext& Ctx) void ZenCacheNamespace::GatherReferences(GcContext& GcCtx) { + ZEN_TRACE_CPU("Z$::ZenCacheNamespace::GatherReferences"); + Stopwatch Timer; const auto Guard = MakeGuard([&] { ZEN_DEBUG("cache gathered all references from '{}' in {}", m_RootDir, NiceTimeSpanMs(Timer.GetElapsedTimeMs())); }); @@ -166,6 +168,8 @@ ZenCacheNamespace::GatherReferences(GcContext& GcCtx) void ZenCacheNamespace::CollectGarbage(GcContext& GcCtx) { + ZEN_TRACE_CPU("Z$::Namespace::CollectGarbage"); + m_MemLayer.Reset(); m_DiskLayer.CollectGarbage(GcCtx); } @@ -354,6 +358,8 @@ ZenCacheStore::Get(const CacheRequestContext& Context, const IoHash& HashKey, ZenCacheValue& OutValue) { + ZEN_TRACE_CPU("Z$::Get"); + if (ZenCacheNamespace* Store = GetNamespace(Namespace); Store) { bool Result = Store->Get(Bucket, HashKey, OutValue); @@ -396,6 +402,8 @@ ZenCacheStore::Put(const CacheRequestContext& Context, const IoHash& HashKey, const ZenCacheValue& Value) { + ZEN_TRACE_CPU("Z$::Put"); + if (m_Configuration.EnableWriteLog) { ZEN_TRACE_CPU("Z$::Get::WriteLog"); |