This is an archive of the discontinued LLVM Phabricator instance.

[scudo] Print PushedBytesDelta in getStats()
ClosedPublic

Authored by Chia-hungDuan on Jul 5 2023, 3:06 PM.

Details

Summary

This gives a hint of potential bytes to release. Also remove the RSS
which is not supported yet. Will add it back when it's available.

Diff Detail

Event Timeline

Chia-hungDuan created this revision.Jul 5 2023, 3:06 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 5 2023, 3:06 PM
Herald added subscribers: yaneury, Enna1. · View Herald Transcript
Chia-hungDuan requested review of this revision.Jul 5 2023, 3:06 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 5 2023, 3:06 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript

Here's the sample output

Stats: SizeClassAllocator64: 7M mapped (0M rss) in 217 allocations; remains 145
  00 (   128): mapped:    256K popped:     152 pushed:       7 inuse:    145 total:    192 releases:      0 last released:      0K latest pushed bytes:      5K region: 0x7fd0c8347000 (0x7fd0c8340000)
  10 (   384): mapped:    256K popped:       2 pushed:       2 inuse:      0 total:     16 releases:      1 last released:      8K latest pushed bytes:      0K region: 0x7fd0be349000 (0x7fd0be340000)
  24 (  4096): mapped:    256K popped:       1 pushed:       1 inuse:      0 total:      8 releases:      1 last released:     32K latest pushed bytes:      0K region: 0x7fd0b234c000 (0x7fd0b2340000)
cferris accepted this revision.Jul 10 2023, 2:26 PM

LGTM

This revision is now accepted and ready to land.Jul 10 2023, 2:26 PM
This revision was automatically updated to reflect the committed changes.