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/edsp.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'apt-pkg/edsp.cc') diff --git a/apt-pkg/edsp.cc b/apt-pkg/edsp.cc index 2d7fdcc3c..5a9808ff4 100644 --- a/apt-pkg/edsp.cc +++ b/apt-pkg/edsp.cc @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include @@ -796,6 +797,7 @@ bool EDSP::ResolveExternal(const char* const solver, pkgDepCache &Cache, unsigned int const flags, OpProgress *Progress) { if (strstr(solver, "3.") == solver) { + APT::PerformanceContext context{"APT::Solver"}; APT::Solver::DependencySolver s(Cache.GetCache(), Cache.GetPolicy(), (EDSP::Request::Flags)flags); FileFd output; bool res = true; -- cgit v1.2.3-70-g09d2