@@ -165,18 +165,11 @@ struct Stats {
165165 }
166166 };
167167
168+
168169 foreachAC ([&](auto tid, auto pid, auto cid, auto stats) {
169170 auto [allocSizeSuffix, allocSize] = formatMemory (stats.allocSize );
170171 auto [memorySizeSuffix, memorySize] =
171172 formatMemory (stats.totalAllocatedSize ());
172- out << folly::sformat (" tid{:2} pid{:2} cid{:4} {:8.2f}{} memorySize: {:8.2f}{}" ,
173- tid, pid, cid, allocSize, allocSizeSuffix, memorySize,
174- memorySizeSuffix)
175- << std::endl;
176- });
177-
178- foreachAC ([&](auto tid, auto pid, auto cid, auto stats) {
179- auto [allocSizeSuffix, allocSize] = formatMemory (stats.allocSize );
180173
181174 // If the pool is not full, extrapolate usageFraction for AC assuming it
182175 // will grow at the same rate. This value will be the same for all ACs.
@@ -186,8 +179,10 @@ struct Stats {
186179
187180 out << folly::sformat (
188181 " tid{:2} pid{:2} cid{:4} {:8.2f}{} usageFraction: {:4.2f} "
182+ " memorySize: {:8.2f}{} "
189183 " rollingAvgAllocLatency: {:8.2f}ns" ,
190184 tid, pid, cid, allocSize, allocSizeSuffix, acUsageFraction,
185+ memorySize, memorySizeSuffix,
191186 stats.allocLatencyNs .estimate ())
192187 << std::endl;
193188 });
0 commit comments