Documentation
¶
Overview ¶
Read memory pressure info from ActivityManager.
Uses the generated IActivityManager proxy via the "activity" binder service. Queries system memory info, memory trim level, and per-process memory state.
Build:
GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -o build/memory_pressure ./examples/memory_pressure/ adb push build/memory_pressure /data/local/tmp/ && adb shell /data/local/tmp/memory_pressure
Click to show internal directories.
Click to hide internal directories.