@@ -193,7 +193,17 @@ struct Stats {
193193 }
194194 };
195195
196- foreachAC (allocationClassStats, [&](auto tid, auto pid, auto cid, auto stats) {
196+ auto foreachAC = [&](auto cb) {
197+ for (auto & tidStat : allocationClassStats) {
198+ for (auto & pidStat : tidStat.second ) {
199+ for (auto & cidStat : pidStat.second ) {
200+ cb (tidStat.first , pidStat.first , cidStat.first , cidStat.second );
201+ }
202+ }
203+ }
204+ };
205+
206+ foreachAC ([&](auto tid, auto pid, auto cid, auto stats) {
197207 auto [allocSizeSuffix, allocSize] = formatMemory (stats.allocSize );
198208 auto [memorySizeSuffix, memorySize] =
199209 formatMemory (stats.totalAllocatedSize ());
@@ -203,7 +213,7 @@ struct Stats {
203213 << std::endl;
204214 });
205215
206- foreachAC (allocationClassStats, [&](auto tid, auto pid, auto cid, auto stats) {
216+ foreachAC ([&](auto tid, auto pid, auto cid, auto stats) {
207217 auto [allocSizeSuffix, allocSize] = formatMemory (stats.allocSize );
208218
209219 // If the pool is not full, extrapolate usageFraction for AC assuming it
0 commit comments