diff options
| author | Stefan Boberg <[email protected]> | 2023-05-16 13:34:08 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-05-16 13:34:08 +0200 |
| commit | 4c518511ccf35c79284bde3dd10860b9bb52b6a0 (patch) | |
| tree | 05f58d276ee82564832a2c9c078d3b1b6809d3cb /src/zenstore/cas.cpp | |
| parent | Moved EnableVTMode function into zencore (#311) (diff) | |
| download | zen-4c518511ccf35c79284bde3dd10860b9bb52b6a0.tar.xz zen-4c518511ccf35c79284bde3dd10860b9bb52b6a0.zip | |
Additional trace instrumentation (#312)
* added trace instrumentation to upstreamcache
* added asio trace instrumentation
* added trace annotations for project store
* added trace annotations for BlockStore
* added trace annotations for HttpClient
* added trace annotations for CAS/GC
Diffstat (limited to 'src/zenstore/cas.cpp')
| -rw-r--r-- | src/zenstore/cas.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/zenstore/cas.cpp b/src/zenstore/cas.cpp index 33e1ae0e0..ab05e3e7c 100644 --- a/src/zenstore/cas.cpp +++ b/src/zenstore/cas.cpp @@ -85,6 +85,8 @@ CasImpl::~CasImpl() void CasImpl::Initialize(const CidStoreConfiguration& InConfig) { + ZEN_TRACE_CPU("Cas::Initialize"); + m_Config = InConfig; ZEN_INFO("initializing CAS pool at '{}'", m_Config.RootDirectory); @@ -260,6 +262,8 @@ CasImpl::Flush() void CasImpl::ScrubStorage(ScrubContext& Ctx) { + ZEN_TRACE_CPU("Cas::ScrubStorage"); + if (m_LastScrubTime == Ctx.ScrubTimestamp()) { return; @@ -275,6 +279,8 @@ CasImpl::ScrubStorage(ScrubContext& Ctx) void CasImpl::GarbageCollect(GcContext& GcCtx) { + ZEN_TRACE_CPU("Cas::GarbageCollect"); + m_SmallStrategy.CollectGarbage(GcCtx); m_TinyStrategy.CollectGarbage(GcCtx); m_LargeStrategy.CollectGarbage(GcCtx); |