aboutsummaryrefslogtreecommitdiff
path: root/src/zenstore/filecas.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2023-11-28 07:54:05 -0500
committerGitHub <[email protected]>2023-11-28 13:54:05 +0100
commitdcaeaac4ebc6255cb210ce54a18b1cd01b9eeaf8 (patch)
tree766d03bad3262643653dcd08a20e0dbad57e2f01 /src/zenstore/filecas.cpp
parentDon't call spdlog::drop_all, spdlog::shutdown will do that for us in a contro... (diff)
downloadzen-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/filecas.cpp')
-rw-r--r--src/zenstore/filecas.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/zenstore/filecas.cpp b/src/zenstore/filecas.cpp
index bf12a0c1a..aeca01dd1 100644
--- a/src/zenstore/filecas.cpp
+++ b/src/zenstore/filecas.cpp
@@ -1355,6 +1355,8 @@ public:
virtual void CompactStore(GcCtx& Ctx, GcCompactStoreStats& Stats, const std::function<uint64_t()>&)
{
+ ZEN_TRACE_CPU("FileCas::CompactStore");
+
Stopwatch Timer;
const auto _ = MakeGuard([&] {
Reset(m_ReferencesToClean);
@@ -1451,6 +1453,8 @@ public:
virtual GcStoreCompactor* RemoveUnreferencedData(GcCtx& Ctx, GcStats& Stats, const GetUnusedReferencesFunc& GetUnusedReferences)
{
+ ZEN_TRACE_CPU("FileCas::RemoveUnreferencedData");
+
Stopwatch Timer;
const auto _ = MakeGuard([&] {
if (!Ctx.Settings.Verbose)
@@ -1523,6 +1527,8 @@ FileCasStrategy::GetGcName(GcCtx&)
GcReferencePruner*
FileCasStrategy::CreateReferencePruner(GcCtx& Ctx, GcReferenceStoreStats&)
{
+ ZEN_TRACE_CPU("FileCas::CreateReferencePruner");
+
Stopwatch Timer;
const auto _ = MakeGuard([&] {
if (!Ctx.Settings.Verbose)