diff options
| author | Dan Engelbrecht <[email protected]> | 2023-12-13 09:25:05 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-12-13 15:25:05 +0100 |
| commit | 16fd9ea89c7560216b654843400ab3d852b04e16 (patch) | |
| tree | 22045d4be67071b66dd8778942dd65ebaaef1883 /src/zenstore/cas.cpp | |
| parent | fix crash at log exit (#605) (diff) | |
| download | zen-16fd9ea89c7560216b654843400ab3d852b04e16.tar.xz zen-16fd9ea89c7560216b654843400ab3d852b04e16.zip | |
improve trace (#606)
* Adding some more trace scopes for better visiblity
* Removed spammy trace scope when replaying oplogs
* Remove "::Disk" from trace scopes - redundant now that we have merge disk and memory layers
Diffstat (limited to 'src/zenstore/cas.cpp')
| -rw-r--r-- | src/zenstore/cas.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/zenstore/cas.cpp b/src/zenstore/cas.cpp index d38099117..b20f2049a 100644 --- a/src/zenstore/cas.cpp +++ b/src/zenstore/cas.cpp @@ -91,7 +91,7 @@ CasImpl::~CasImpl() void CasImpl::Initialize(const CidStoreConfiguration& InConfig) { - ZEN_TRACE_CPU("Cas::Initialize"); + ZEN_TRACE_CPU("CAS::Initialize"); m_Config = InConfig; @@ -127,6 +127,7 @@ CasImpl::Initialize(const CidStoreConfiguration& InConfig) bool CasImpl::OpenOrCreateManifest() { + ZEN_TRACE_CPU("CAS::OpenOrCreateManifest"); bool IsNewStore = false; std::filesystem::path ManifestPath = m_Config.RootDirectory; @@ -189,6 +190,7 @@ CasImpl::OpenOrCreateManifest() void CasImpl::UpdateManifest() { + ZEN_TRACE_CPU("CAS::UpdateManifest"); if (!m_ManifestObject) { CbObjectWriter Cbo; @@ -266,6 +268,7 @@ CasImpl::ContainsChunk(const IoHash& ChunkHash) void CasImpl::FilterChunks(HashKeySet& InOutChunks) { + ZEN_TRACE_CPU("CAS::FilterChunks"); m_SmallStrategy.FilterChunks(InOutChunks); m_TinyStrategy.FilterChunks(InOutChunks); m_LargeStrategy.FilterChunks(InOutChunks); @@ -274,6 +277,7 @@ CasImpl::FilterChunks(HashKeySet& InOutChunks) void CasImpl::Flush() { + ZEN_TRACE_CPU("CAS::Flush"); ZEN_INFO("flushing CAS pool at '{}'", m_Config.RootDirectory); m_SmallStrategy.Flush(); m_TinyStrategy.Flush(); |