Turns a huge Android trace into 20 rows of facts an AI agent can actually use.
English · Русский
- Finds the line to fix. From a slow screen to a file and line, with the numbers that prove it.
- Same answer, every run. A pinned
trace_processor: the same trace always gives the same report. - No tracing code needed. Works on apps with zero
trace {}calls; it places temporary markers itself. - Works with your agent. A plugin for Claude Code, Codex and Cursor; any
other agent via
echolot guide.
Quick start
pipx install echolot
Then the plugin, for the agent you use:
# Claude Code
claude plugin marketplace add grishan0v/echolot
claude plugin install echolot@echolot
# Codex
codex plugin marketplace add grishan0v/echolot
codex plugin add echolot@echolot
# Cursor: a copy in its folder for local plugins, then restart Cursor
echolot plugin cursor
Cursor also loads the plugins Claude Code has installed and enabled, so with the plugin in Claude Code there is nothing to copy.
Open the agent in your Android project and say what is wrong:
With the plugin, the command is /echolot:echolot in Claude Code,
$echolot in Codex and /echolot in Cursor. Without it, echolot init puts /echolot into the
project's .claude/ and points other agents at echolot guide; see
The agent layer.
Without an agent
# record the scenario five times, and build the report from those traces
echolot collect -c echolot.yml -n 5
echolot analyze .echolot/traces/coldStart_iter*.perfetto-trace -c echolot.yml
# what changed since an earlier report
echolot compare before.json .echolot/out/report.json
In CI, one step after the benchmark analyzes its traces and compares them with the report the last good run kept:
- uses: grishan0v/echolot@v0.18.0
with:
traces: app/benchmark/build/outputs/**/StartupBenchmark_startup_iter*.perfetto-trace
What it catches
echolot runs sixteen SQL detectors over a Perfetto trace. Each one that finds something becomes a section of the report:
What you get
report.md for you and report.json for the agent, in .echolot/out/.
The agent reads it through echolot report: an overview of one line per
detector, and each detector's rows one command away, ranked by the median
times the share of repeats that found them. On a large Kotlin app's cold start, five repeats
with default thresholds, twelve detectors fired with 255 rows; report.json
keeps them all in about 240 KB, and the overview the agent reads is about
3.5 KB. The repeats of a set are read side by side, each in a
trace_processor of its own: fifteen cold starts in about nine seconds.
echolot analyze --html adds report.html: the same report in plain words as
a page, one file that opens from disk. echolot hunt --show --html
writes an investigation the same way: what the agent found, where, and what to change.
echolot compare --html does it for two reports: did it get better, and which checks moved.
echolot ui opens a page on this machine with whether everything is ready, a
button that records and analyses the app, the reports and the agent's answers.
In a project with no config yet it writes the first one, for how the app opens.
From a report it starts your own Claude Code or Codex on the checks you tick,
and shows its rounds as they come in.
Example report
# Marker Report
Runs: **5**, numbers are medians across them
Traces: `coldStart_iter000`, `coldStart_iter001`, `coldStart_iter002`, `coldStart_iter003`, `coldStart_iter004`
Scenario: `coldStart`
Process: `com.example.app` (pid 12903 in `coldStart_iter000`, the first of 5)
Scenario window: **1136.05 ms** (from 1084.25 to 1214.18 across repeats)
Main thread: 40% on a CPU · 1% waiting for a CPU · 9% blocked in the kernel · 49% sleeping
Covered by the findings below: **42%** of the main thread's window, each moment counted once
Startup: cold, **1174 ms** from the launch to the first frame: 42% sleeping · 17% `choreographer_do_frame` · 17% `inflate` · 6% blocked in the kernel · 5% `monitor_contention` · 3% `launch_delay` · 2% `bind_application` · 2% `activity_start`
That is the platform's measure rather than the window: the startup began 38 ms before the window opened, and ended with it.
Device: clock **1478 MHz** (from 1325 to 1574 across repeats), peak 54 °C, 1514 MB free at the low point
Detectors fired: **5 of 16**
> ⚠️ 1 detector(s) could not run, because the trace does not hold what they read. Their silence says nothing about the app. `composables` — The recording does not carry the names of composables, which have to be switched on when recording. A recording that holds what they read lets them look; until then those checks are open.
Config: `/home/you/my-app/echolot.yml` (sha 3d78738defec) · thresholds: built-in defaults
## Markers
_the names `domains` lists and the `AGENTTMP_` ones; medians per run, self time with children subtracted_
| Marker | Runs | N | Self, ms | Total, ms | Max, ms | Threads |
|---|---|---|---|---|---|---|
| collection_load | 5/5 | 1 | 923.8 | 923.8 | 971.63 | (async) |
| collection_mapping | 5/5 | 1 | 96.0 | 118.3 | 132.5 | arch_disk_io_1 |
## Frames that missed their deadline
_the platform classifies every frame itself, and says whose fault it was. The only detector that answers "which frames stuttered" rather than "where did the total go" — and it needs no instrumentation in the app at all._
| Where | Runs | N | Total, ms | Max of any run, ms | Evidence |
|---|---|---|---|---|---|
| App Deadline Missed | 5/5 | 4 | 427.51 | 172.0 | Self Jank · 4 of 19 frames · longest 188.7 ms |
<sub>detector `frame_jank`, params: {'min_frames': 3, 'min_overrun_ms': 4}</sub>
## Where the main thread spent its time
_measured as SELF time, children subtracted — otherwise one event lands in the report several times at different depths and the agent counts it twice_
| Where | Runs | N | Self, ms | Total, ms | Max of any run, ms | Evidence |
|---|---|---|---|---|---|---|
| inflate | 5/5 | 15 | 222.68 | 241.38 | 86.2 | com.example.app |
| draw | 5/5 | 7 | 120.8 | 120.8 | 38.08 | com.example.app |
| TextLayout:initLayout | 5/5 | 51 | 73.95 | 73.95 | 1.62 | com.example.app |
| Lock contention on a monitor lock (owner tid: #) | 5/5 | 9 | 61.6 | 61.6 | 25.09 | com.example.app |
<sub>detector `main_thread_block`, params: {'min_slice_ms': 16}</sub>
## Single occurrences far longer than the same work usually takes
_the pair to main_thread_block. That one asks where the main thread's time went in total; this one asks which single occurrence was out of line with its own history. A heavy tail hides from every sum._
| Where | Runs | N | Total, ms | Max of any run, ms | Evidence |
|---|---|---|---|---|---|
| inflate | 2/5 | 1 | 86.2 | 86.2 | median 12.1 ms of 15 · worst 7.1× |
<sub>detector `main_thread_outlier`, params: {'factor': 4, 'min_abs_ms': 40, 'min_occurrences': 5}</sub>
## Monitor contention
_ART writes a "Lock contention on ..." slice with the owner's tid — ready-made evidence_
| Where | Threads | Runs | N | Total, ms | Max of any run, ms | In the code | Evidence |
|---|---|---|---|---|---|---|---|
| main | 1 | 5/5 | 9 | 61.6 | 25.09 | owner at StoreRepository.kt:30 · blocked at StoreRepository.kt:61 | monitor contention with owner DefaultDispatcher-worker-3 (12931) at void com.example.app.data.StoreRepository.update(com.example.app.data.Item)(StoreRepository.kt:30) waiters=0 blocking from com.example.app.data.Item com.example.app.data.StoreRepository.find(long)(StoreRepository.kt:61) |
<sub>detector `monitor_contention`, params: {'min_block_ms': 8, 'max_total_ms': 50, 'name_glob': 'Lock contention on a monitor lock*', 'name_glob_alt': 'monitor contention with owner*'}</sub>
## Blind spots: threads burning CPU with no instrumentation
_names a thread that burns CPU with no slice around it. The agent does not guess — it is handed the fact "thread T ran for 340 ms, zero slices". That is exactly where adding trace{} pays off._
| Where | Threads | Runs | N | Total, ms | Instrumented, ms | Evidence |
|---|---|---|---|---|---|---|
| DefaultDispatch | 1 | 5/5 | 0 | 522.09 | 0.0 | 100.0% of CPU outside slices |
<sub>detector `uninstrumented_cpu`, params: {'min_running_ms': 50, 'max_covered_pct': 50}</sub>
**Silent:** anr, anr_risk, app_init, binder_txn, gc_pressure, io_wait, main_thread_kernel_waits, main_thread_waits, repeated_work, runnable_starvation
<sub>trace_processor v59.1</sub>
What analyze prints in a terminal for the demo that comes with echolot: five cold starts
of an app that does not exist, built by code.
Requirements
- Python 3.10 or newer, with
adbandcurlonPATH - a phone or emulator with USB debugging on; Android 12+ for
frame_jank - git 2.36 or newer, for Claude Code to install the plugin
The first command that needs trace_processor downloads it once: 11–16 MB,
checked against its SHA-256. Offline or behind a proxy, see
Determinism.
Documentation
grishan0v.github.io/echolot, or the same pages on GitHub: Collecting · ANRs · Marking · The page in the browser · Analysing · Comparing · Calibrating · Determinism · The agent layer · Privacy · Terms of use · Detectors · Reflect
Questions and ideas: Discussions.
License
Metadata
Release files for echolot 0.18.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| echolot-0.18.0.tar.gz | 1.9 MB | With provenance | Details for echolot-0.18.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| echolot-0.18.0-py3-none-any.whl | Python 3 | none | any | Details for echolot-0.18.0-py3-none-any.whl |
Total release size: 3.2 MB
Release files / echolot-0.18.0.tar.gz
| Download URL | echolot-0.18.0.tar.gz |
|---|---|
| Size | 1.9 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
06547e43aea6d84b2cb7fff0009ef838019f9b1fe8b91f88911c29e427a8644a
|
|
BLAKE2b-256 checksum How to use checksums |
8711841d338afe7400ba294ffbe0df90da7a431bba4849cb3c10ddaeeb943fd0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.
Transparency logRelease files / echolot-0.18.0-py3-none-any.whl
| Download URL | echolot-0.18.0-py3-none-any.whl |
|---|---|
| Size | 1.3 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7eff8e0d524f2b8861c4be1dc9fc1edaacabd930bb89698f0065ba516bd3539f
|
|
BLAKE2b-256 checksum How to use checksums |
d2be7372b97fd0288a1955cf89358d042ed355157b5e65a12ef8b82deff4fa38
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.
Transparency logSecurity for echolot 0.18.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for echolot-0.18.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.