@@ -203,18 +203,11 @@ struct Stats {
203203 }
204204 };
205205
206+
206207 foreachAC ([&](auto tid, auto pid, auto cid, auto stats) {
207208 auto [allocSizeSuffix, allocSize] = formatMemory (stats.allocSize );
208209 auto [memorySizeSuffix, memorySize] =
209210 formatMemory (stats.totalAllocatedSize ());
210- out << folly::sformat (" tid{:2} pid{:2} cid{:4} {:8.2f}{} memorySize: {:8.2f}{}" ,
211- tid, pid, cid, allocSize, allocSizeSuffix, memorySize,
212- memorySizeSuffix)
213- << std::endl;
214- });
215-
216- foreachAC ([&](auto tid, auto pid, auto cid, auto stats) {
217- auto [allocSizeSuffix, allocSize] = formatMemory (stats.allocSize );
218211
219212 // If the pool is not full, extrapolate usageFraction for AC assuming it
220213 // will grow at the same rate. This value will be the same for all ACs.
@@ -224,8 +217,10 @@ struct Stats {
224217
225218 out << folly::sformat (
226219 " tid{:2} pid{:2} cid{:4} {:8.2f}{} usageFraction: {:4.2f} "
220+ " memorySize: {:8.2f}{} "
227221 " rollingAvgAllocLatency: {:8.2f}ns" ,
228222 tid, pid, cid, allocSize, allocSizeSuffix, acUsageFraction,
223+ memorySize, memorySizeSuffix,
229224 stats.allocLatencyNs .estimate ())
230225 << std::endl;
231226 });
0 commit comments