flutter_startup_tracer 0.1.0
flutter_startup_tracer: ^0.1.0 copied to clipboard
Measure Flutter app startup from process start to first frame and interactive, with an ASCII waterfall, DevTools timeline events and actionable advice.
0.1.0 #
- First release.
StartupTracer.start()records Dartmainas t0;phase,phaseSync,parallel(wall time vs sum) and nested phases via zones.StartupTracerScope/trace.runApp()capturerunApp, first frame built and first frame rasterized (engineFrameTiming), and startdeferredtasks after it.markInteractive()andmark()for app-defined milestones.- Optional native process-start time: Android
Process.getStart(Requested)ElapsedRealtime, iOSsysctl(KERN_PROC_PID)with pre-warm detection. Unknown elsewhere. dart:developertimeline events for DevTools.- Reports as console text with an ASCII waterfall, Markdown and JSON, plus advice: slow critical phases, serial phases that could run in parallel, heavy first build, slow native start, pre-warming, failed phases and debug-mode measurements.
StartupTracerBanneroverlay,onReportcallback and in-memoryhistory.