:wave: We want to add system trace to different co...
# compose
a
👋 We want to add system trace to different composition phases, does anyone know what are the most appropriate callbacks to use to add a trace? Currently we’re doing: • composition - DisposableEffect • layout - onGloballyPositioned • drawing - ???
b
Are you trying to get a callback when different phases finish?
I would have thought our trace markers in the compiler 1.3.2 would be enough for this without you having to add your own
a
Thanks, we’re trying to track screen time-to-render and upload it to a dashboard basically.
b
Oh in that case, maybe you can use the new FullyDrawnReporter APIs. https://developer.android.com/jetpack/androidx/releases/activity#1.7.0-alpha01
a
Thanks, we’ll try it out