From 60a7d1c3be8f6c7eb697c7d5160fc560097cc70e Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Sun, 11 Jan 2026 12:37:46 +0100 Subject: Introduce JSONL performance counter logging Introduce a scoped object that starts measuring performance counters and then dumps them into a JSONL file for later analysis. Add performance contexts for APT::Solver and pkgDepCache::Init() as starting points. --- apt-pkg/depcache.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'apt-pkg/depcache.cc') diff --git a/apt-pkg/depcache.cc b/apt-pkg/depcache.cc index f7f508f85..2a9ef50d2 100644 --- a/apt-pkg/depcache.cc +++ b/apt-pkg/depcache.cc @@ -19,6 +19,7 @@ #include #include #include +#include #include #include #include @@ -225,6 +226,7 @@ bool pkgDepCache::CheckConsistency(char const *const msgtag) /*{{{*/ /* This allocats the extension buffers and initializes them. */ bool pkgDepCache::Init(OpProgress * const Prog) { + APT::PerformanceContext perf{"pkgDepCache::Init"}; // Suppress mark updates during this operation (just in case) and // run a mark operation when Init terminates. ActionGroup actions(*this); -- cgit v1.2.3-70-g09d2