SwapThrashingMonitor -- macOS implementation |
|
Issue descriptionmacOS keeps global system counters for # of times a page was decompressed, swapped, paged, etc: https://developer.apple.com/documentation/kernel/vm_statistics64_data_t?language=objc This is all accessed with a single syscall: https://cs.chromium.org/chromium/src/base/process/process_metrics_ios.cc?type=cs&q=host_statistics&sq=package:chromium&g=0&l=79 On a per-process level, the only available, relevant counter is for total # of pages from the process that have ever been compressed: https://cs.chromium.org/chromium/src/base/process/process_metrics_mac.cc?type=cs&q=phys_footprint&sq=package:chromium&g=0&l=50 |
|
►
Sign in to add a comment |
|