Metro 1.3.0 has rich diagnostics and experimental runtime tracing! github.com/ZacSweers/metro/re...
Post
github.comRelease 1.3.0 · ZacSweers/metroNew
[IR] Revamp graph-validation diagnostics with structured output. Taking some inspiration from Rust error messages.
Stable diagnostic IDs
Compact dependency chains
Aligned binding traces...
Runtime tracing is a new integration with the upcoming androidx.tracing 2.0. If enabled, you just pass a Tracer instance into your graph and Metro will generate code that traces binding materialization throughout your graph. This is especially useful for profiling app startup or a CUJ.
0 reposts3 likes