Dropped data, a debuggable build or a missing data source makes every number below it meaningless, so this comes first.
Directional only
The findings point at real code paths, but do not quote the numbers.
build type not verified
Trace health
Pass
pass
no errors and no dropped data
Recorded: slices
Pass
ok
this data source is in the trace
Recorded: sched
Pass
ok
this data source is in the trace
Recorded: frametimeline
Pass
ok
this data source is in the trace
Recorded: blocked reasons
Pass
ok
this data source is in the trace
Recorded: binder
Pass
ok
this data source is in the trace
Build type
Unknown
unknown
03_build_type did not run on this trace
Startup capture
Pass
ok
capture mode: startup
Info
Build type not verified
03_build_type did not run on this trace. This report cannot tell whether the app was a release build.
What to do. Run `adb shell dumpsys package <pkg> | grep -i debuggable` (any output means debuggable), or recapture with scripts/capture.sh, which refuses debuggable builds unless told otherwise.
Running means the app's code is slow. Waiting means it was blocked, and profiling the app's own code will find nothing.
Main thread during startup
Each colour is one thread state, sized by its share of the time. It is a total, not a timeline: the order is not the order things happened.
Running 66%Sleeping 28%
Running172 ms66%
Runnable6.4 ms2%
Uninterruptible sleep (IO)9.1 ms3%
Uninterruptible sleep (non-IO)0.1 ms<1%
Sleeping75 ms28%
inferenceWhat it means. The main thread was executing code for 66% of startup. The cost is work the app is doing, so the slices it was running are the place to look.
See it in Perfetto. Expand the app's process. The first thread is the main thread, and the thin coloured strip above its slices uses these same colours.
Main thread over the whole trace (com.example.app)
Each colour is one thread state, sized by its share of the time. It is a total, not a timeline: the order is not the order things happened.
7%Sleeping 92%
Running389 ms7%
Runnable10 ms<1%
Uninterruptible sleep (IO)9.1 ms<1%
Uninterruptible sleep (non-IO)0.1 ms<1%
Sleeping4,889 ms92%
inferenceWhat it means. Over a whole capture the main thread is expected to sleep between frames and while it waits for input, so the sleeping share here is not a problem by itself. What to read is how much it ran (389 ms, 7%), how long it was ready with no CPU free (10 ms), and how long it was blocked in the kernel (9.2 ms).
See it in Perfetto. Expand the app's process. The first thread is the main thread, and the thin coloured strip above its slices uses these same colours.
What the states mean
Running: on a CPU, executing code
Runnable: ready to run, waiting for a CPU
Uninterruptible sleep (IO): blocked in the kernel on disk IO
Uninterruptible sleep (non-IO): blocked in the kernel, not on IO
Sleeping: waiting for something: a lock, a binder reply, a message, a timer
Infodirectional only
Startup is compute-bound: main thread runs 66% of the time
Running 172 ms vs waiting 90 ms (Running 172 ms, Sleeping 75 ms, Uninterruptible Sleep (IO) 9 ms, Runnable (Preempted) 3 ms, Runnable 3 ms, Uninterruptible Sleep (non-IO) 0 ms, Uninterruptible Sleep 0 ms). Startup is 288 ms to first frame, under the 500 ms this report flags, so this is information, not a problem.
What to do. Your code, class loading, or JIT is the cost. Baseline Profiles and deferring init work off the critical path are the levers.
Measured in 12_startup_main_thread_state
3Which frames were late, and who is to blame?
Every frame has a deadline. The frame timeline says whether the app or the system compositor missed it.
32frames recordedcom.example.app
31missed their deadline97% of frames
+156 msworst framepast its deadline
Frames by outcome
Every frame in the capture, grouped by whether it met its deadline and, if not, who the frame timeline blames. Sizes are frame counts.
Late, app at fault 38%16%Late, other cause 44%
On time1 frame3%
Late, app at fault12 frames38%
Late, system at fault5 frames16%
Late, other cause14 frames44%
inferenceWhat it means. 31 of 32 frames were late. The frame timeline blames the app for 12 of them and the system compositor for 5, so the app's own frame work is the first place to look.
See it in Perfetto. Under the app's process, expand Expected Timeline and Actual Timeline. The Actual Timeline slices use these colours.
The worst frames
One bar per frame, starting at the frame's deadline. Longer means later.
Late, app at fault
Buffer stuffing
Late, system at fault
See it in Perfetto. Press / in the Perfetto UI and search for a frame number, for example 26045026. It appears in the Choreographer#doFrame slice name.
Who paid for the late frames
Time spent inside late frames, summed per stage.
UI thread (doFrame)547 ms
RenderThread (DrawFrame)404 ms
Waiting to start (vsync delay)308 ms
inferenceWhat it means. The UI thread costs more than RenderThread in the late frames. Look at measure, layout, recomposition and work posted to the main thread before looking at the GPU.
Highdirectional only
com.example.app: 31/32 frames janky (96.9%)
Worst frame ran 156 ms over its deadline. App-attributed jank: 12, SurfaceFlinger-attributed: 5.
What to do. Blame lands on the app. Look at the UI-thread vs RenderThread split and the hot slices during janky frames.
Measured in 20_jank_summary
Mediumdirectional only
com.example.app: cost is on the UI thread
doFrame 547 ms vs DrawFrame 404 ms (vsync delay 308 ms). Jank rate: 31 of 32 frames (96.9%).
What to do. Look for measure/layout passes, recomposition, main-thread IO or deserialisation, and work posted onto the main Handler.
Measured in 22_jank_cpu_split
Mediumdirectional only
Measure/layout/traversal cost during janky frames (1316 ms)
Slices matched: traversal. Jank rate: 31 of 32 frames (96.9%).
What to do. Flatten the hierarchy, avoid nested weights / double measure, and hoist state so recomposition scopes stay small.
Measured in 23_jank_hot_slices
4Where did the time go?
Only now is it worth ranking slices.
Startup
288 mstime to first frame (TTID)cold start
not reportedtime to full content (TTFD)the app never calls reportFullyDrawn()
2,991classes loaded31 ms on the critical path
What startup was spent on
Perfetto's own breakdown of the launch, largest first. Categories overlap, so they do not add up to the total.
choreographer_do_frame93 ms134 slices
binder61 ms280 slices
Running33 ms39 slices
launch_delay28 ms1 slices
activity_start18 ms34 slices
open_dex_files_from_oat17 ms174 slices
bind_application16 ms50 slices
activity_resume9.2 ms31 slices
io9.1 ms2 slices
resources_manager_get_resources1.3 ms2 slices
See it in Perfetto. Find the Android App Startups track near the top of the trace. Selecting the startup slice highlights this window.
Longest slices on the main thread during startup
Ranked by total time. A parent slice includes everything nested under it, so read this for where to look, not for blame.
Choreographer#doFrame 26045026139 ms1x
Choreographer#doFrame - resynced to 26045031 in 23.2ms138 ms1x
traversal138 ms1x
binder transaction61 ms71x
bindApplication49 ms1x
Compose:onRemembered47 ms1x
clientTransactionExecuted36 ms2x
Compose:recompose30 ms2x
Hot slices
Where the time was spent, by self time
Self time is the time inside a slice itself, with the slices nested under it taken out. It is the fairest ranking of what cost the most.
inferenceWhat it means. A name here that does not appear anywhere in the app's source is a framework or system slice. The app caused it but did not write it. Run triage with --app-repo to have each name checked.
See it in Perfetto. Press / and search for a slice name to jump to it.
Binder calls on the main thread
Synchronous calls to other processes
Each bar is one binder interface the main thread called and waited on. This trace does not name the interfaces, so those calls are grouped by the process that was called.
AIDL::cpp::android.gui.SensorEventConnection::#2::server53 ms2x to system_server
AIDL::java::android.app.IActivityManager::attachApplication::server4.0 ms1x to system_server
to /system/bin/servicemanager2.4 ms16x
AIDL::java::android.content.IContentProvider::#21::server1.8 ms3x to system_server
AIDL::java::android.app.IActivityManager::finishAttachApplication::server1.4 ms1x to system_server
AIDL::java::android.view.IWindowSession::addToDisplayAsUser::server1.2 ms1x to system_server
What the caller was doing while it waited
The calling thread's state during slow binder calls.
Sleeping 93%
Running1.7 ms2%
Runnable3.4 ms5%
Sleeping68 ms93%
inferenceWhat it means. Most of the wait is the calling thread asleep until the reply arrives. The call is queueing, not computing, so fewer calls helps more than a faster server.
Mediumdirectional only
Main-thread binder: AIDL::cpp::android.gui.SensorEventConnection::#2::server costs 53 ms
2 synchronous calls from com.example.app to system_server, worst single call 42.5 ms.
What to do. Synchronous binder on the main thread is a frozen UI. Cache the result, batch the calls, or move them to a background dispatcher. System APIs that look local (PackageManager, ConnectivityManager, DisplayManager, SharedPreferences-backed system settings) are binder calls underneath.
Measured in 30_binder_main_thread
Infodirectional only
App never calls reportFullyDrawn()
com.example.app has no time-to-full-display. TTID only measures the first frame, which is often a skeleton or spinner.
What to do. Call Activity.reportFullyDrawn() (or ReportDrawn* in Compose) once real content is on screen, so TTFD becomes measurable and Play Console reports it.
Measured in 10_startup_summary
Infodirectional only
Startup time is dominated by 'choreographer_do_frame'
choreographer_do_frame 93 ms, binder 61 ms, Running 33 ms. Startup is 288 ms to first frame, under the 500 ms this report flags, so this is information, not a problem.
What to do. First-frame rendering is expensive. Usually composition/measure/layout cost or shader compilation.
Measured in 11_startup_breakdown
Infodirectional only
2991 classes loaded during startup, 31 ms on the critical path
startup_id=1 (com.example.app). Note this counts explicit class-load slices only; JIT and verification cost sits in the running time above. Startup is 288 ms to first frame, under the 500 ms this report flags, so this is information, not a problem.
What to do. This is the clearest Baseline Profile signal there is. Generate one with BaselineProfileRule, then prove the win by benchmarking CompilationMode.None() against CompilationMode.Partial(BaselineProfileMode.Require).
Measured in 14_startup_class_loading
Infodirectional only
Slow binder calls are queueing, not computing
Dominant client-side reason is 'S' (68 ms).
What to do. The server side is not the bottleneck; the client is descheduled or waiting for a free binder thread. Reducing call *count* helps more than making the server faster.
Measured in 31_binder_why_slow
Info
Compose runtime work ranks in this trace: the fix belongs to compose-expert
Slices: Recomposer:animation (162 ms), Recomposer:recompose (82 ms), Compose:recompose (57 ms), Compose:onRemembered (47 ms), Compose:applyChanges (17 ms). About 364 ms across them. The trace shows how much this work costs, not which composable causes it.
What to do. Use the compose-expert skill (aldefy/compose-skill) for the fix. It covers recomposition, state, lazy lists, animation and Compose performance. If it is not installed, on Claude Code: /plugin marketplace add aldefy/compose-skill, then /plugin install compose-expert. Ask before installing anything.
Measured in 23_jank_hot_slices, 40_slice_hotspots, 13_startup_top_slices
5What to fix, in order
Suggestions drawn from this one trace, for a person or an agent to review. They are not instructions.
Settle the capture question first (1 item). The other 5 suggestions point at real code paths, but their numbers cannot be quoted until then.
Before acting on any of these
Read the code each suggestion points at. Drop any that do not apply, and say which and why. A candidate from the code audit is a pattern match: confirm the line runs on this path, and on which thread, before calling it the cause.
Take the first one left. One fix per change, so the result can be attributed.
Build before and after from the same build type. Trace sections go in both.
Capture 10 or more runs per side and compare them: remeasure.py --before runs/before-* --after runs/after-*
Raise the fix only if the number under "check" comes back clear or likely, and put that table in the pull request. If it comes back noise, say so and do not ship it as a win.
Do first: the capture
1
Confirm the build type before quoting any number
Because: Build type not verified
Run: adb shell dumpsys package <pkg> | grep -i debuggable. Any output means debuggable
Or capture again with capture.sh, whose config records the package list
Where. the capture, not the code
Check. build type is release
Review next
2
Report when the first screen is really drawn
Because: App never calls reportFullyDrawn()
Call Activity.reportFullyDrawn() once real content is on screen
In Compose use ReportDrawn or ReportDrawnWhen { contentIsReady }
Where. the Activity or root composable of the first screen
Check. TTFD (ms)
3
Take the binder call off the main thread
Because: Main-thread binder: AIDL::cpp::android.gui.SensorEventConnection::#2::server costs 53 ms
The finding names the interface. Find the framework API that wraps it
Call it from a background dispatcher, cache the result, or batch repeated calls