diff options
| author | Dan Engelbrecht <[email protected]> | 2023-11-28 07:54:05 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-11-28 13:54:05 +0100 |
| commit | dcaeaac4ebc6255cb210ce54a18b1cd01b9eeaf8 (patch) | |
| tree | 766d03bad3262643653dcd08a20e0dbad57e2f01 /src/zenstore/compactcas.cpp | |
| parent | Don't call spdlog::drop_all, spdlog::shutdown will do that for us in a contro... (diff) | |
| download | zen-dcaeaac4ebc6255cb210ce54a18b1cd01b9eeaf8.tar.xz zen-dcaeaac4ebc6255cb210ce54a18b1cd01b9eeaf8.zip | |
tracing for gcv2 (#574)
- Improvement: Added more trace scopes for GCv2
- Bugfix: Make sure we can override flags to "false" when running `zen gc` commmand
- `smallobjects`, `skipcid`, `skipdelete`, `verbose`
Diffstat (limited to 'src/zenstore/compactcas.cpp')
| -rw-r--r-- | src/zenstore/compactcas.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/zenstore/compactcas.cpp b/src/zenstore/compactcas.cpp index c4f9ff2c6..e9a0a437b 100644 --- a/src/zenstore/compactcas.cpp +++ b/src/zenstore/compactcas.cpp @@ -560,6 +560,8 @@ public: virtual void CompactStore(GcCtx& Ctx, GcCompactStoreStats& Stats, const std::function<uint64_t()>& ClaimDiskReserveCallback) override { + ZEN_TRACE_CPU("CasContainer::CompactStore"); + Stopwatch Timer; const auto _ = MakeGuard([&] { if (!Ctx.Settings.Verbose) @@ -701,6 +703,8 @@ public: virtual GcStoreCompactor* RemoveUnreferencedData(GcCtx& Ctx, GcStats& Stats, const GetUnusedReferencesFunc& GetUnusedReferences) { + ZEN_TRACE_CPU("CasContainer::RemoveUnreferencedData"); + Stopwatch Timer; const auto _ = MakeGuard([&] { if (!Ctx.Settings.Verbose) @@ -780,6 +784,8 @@ CasContainerStrategy::GetGcName(GcCtx&) GcReferencePruner* CasContainerStrategy::CreateReferencePruner(GcCtx& Ctx, GcReferenceStoreStats&) { + ZEN_TRACE_CPU("CasContainer::CreateReferencePruner"); + Stopwatch Timer; const auto _ = MakeGuard([&] { if (!Ctx.Settings.Verbose) |