Skip to content

olef perf

olef v3.18.0View Markdown

Generated from Olef 3.18.0. All olef commands · ocloud commands · Capabilities

These entries describe available commands, not a sequence to run. Check prerequisites before changing app, device, or cloud state. Global options are listed in the command catalog.

Measure frame jank (frames), verified cold/warm/hot startup, and JVMTI leaks

Terminal window
olef perf --help

Output: json.

Reset or sample per-frame jank metrics from dumpsys gfxinfo <pkg> framestats

Terminal window
olef perf frames --help

Output: json.

Clear the frame ring buffer for the target app

Terminal window
olef perf frames reset --help

Output: json.

Argument Description
--app <APP> App package or configured app alias
--json Accepted for compatibility; output is always JSON.

Sample valid frames, p50/p90/p95/p99, jank percentage, and worst-frame stage timings

Terminal window
olef perf frames sample --help

Output: json.

Argument Description
--app <APP> App package or configured app alias
--reset Reset the ring buffer after sampling
--max-jank-pct <MAX_JANK_PCT> Fail with perf_budget_exceeded if jank percentage exceeds this limit
--max-p95-ms <MAX_P95_MS> Fail with perf_budget_exceeded if p95 frame time (ms) exceeds this limit
--json Accepted for compatibility; output is always JSON.

Measure verified cold, warm, or hot app startup times with LaunchState checks

Terminal window
olef perf startup --help

Output: json.

Argument Description
--app <APP> App package or configured app alias
--activity <ACTIVITY> Optional explicit activity component (e.g. .MainActivity)
--mode <MODE> Startup mode to enforce and verify Default: cold. Values: cold, warm, hot.
--runs <RUNS> Number of sequential measured runs (1..=10) Default: 1.
--json Accepted for compatibility; output is always JSON.

Scan for retained destroyed Activities, Fragments, detached Views, and cleared ViewModels via JVMTI

Terminal window
olef perf leaks --help

Output: json.

Argument Description
--app <APP> App package or configured app alias
--gc Trigger JVMTI ForceGarbageCollection before walking GC-root paths
--max-paths <MAX_PATHS> Maximum leak retention chains to return (1..=50) Default: 10.
--depth <DEPTH> Maximum reference-chain BFS depth (1..=64) Default: 24.
--max-pause-ms <MAX_PAUSE_MS> Hard stop-the-world FollowReferences pause cap in milliseconds (100..=2000) Default: 1500.
--json Accepted for compatibility; output is always JSON.