New issue
Advanced search Search tips

Issue 878930 link

Starred by 1 user

Issue metadata

Status: Untriaged
Owner: ----
Cc:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

SwapThrashingMonitor -- macOS implementation

Project Member Reported by erikc...@chromium.org, Aug 29

Issue description

macOS 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