File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed
compiler-rt/lib/scudo/standalone Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -372,10 +372,11 @@ template <typename Config> class SizeClassAllocator64 {
372
372
PushedBlocks += Region->FreeListInfo .PushedBlocks ;
373
373
}
374
374
}
375
+ const s32 IntervalMs = atomic_load_relaxed (&ReleaseToOsIntervalMs);
375
376
Str->append (" Stats: SizeClassAllocator64: %zuM mapped (%uM rss) in %zu "
376
- " allocations; remains %zu\n " ,
377
+ " allocations; remains %zu; ReleaseToOsIntervalMs = %d \n " ,
377
378
TotalMapped >> 20 , 0U , PoppedBlocks,
378
- PoppedBlocks - PushedBlocks);
379
+ PoppedBlocks - PushedBlocks, IntervalMs >= 0 ? IntervalMs : - 1 );
379
380
380
381
for (uptr I = 0 ; I < NumClasses; I++) {
381
382
RegionInfo *Region = getRegionInfo (I);
Original file line number Diff line number Diff line change @@ -179,10 +179,12 @@ template <typename Config> class MapAllocatorCache {
179
179
uptr Fractional;
180
180
computePercentage (SuccessfulRetrieves, CallsToRetrieve, &Integral,
181
181
&Fractional);
182
- Str->append (" Stats: MapAllocatorCache: EntriesCount: %d, "
183
- " MaxEntriesCount: %u, MaxEntrySize: %zu\n " ,
184
- EntriesCount, atomic_load_relaxed (&MaxEntriesCount),
185
- atomic_load_relaxed (&MaxEntrySize));
182
+ const s32 Interval = atomic_load_relaxed (&ReleaseToOsIntervalMs);
183
+ Str->append (
184
+ " Stats: MapAllocatorCache: EntriesCount: %d, "
185
+ " MaxEntriesCount: %u, MaxEntrySize: %zu, ReleaseToOsIntervalMs = %d\n " ,
186
+ EntriesCount, atomic_load_relaxed (&MaxEntriesCount),
187
+ atomic_load_relaxed (&MaxEntrySize), Interval >= 0 ? Interval : -1 );
186
188
Str->append (" Stats: CacheRetrievalStats: SuccessRate: %u/%u "
187
189
" (%zu.%02zu%%)\n " ,
188
190
SuccessfulRetrieves, CallsToRetrieve, Integral, Fractional);
You can’t perform that action at this time.
0 commit comments