utils/perf_profiler library

Lightweight profiler for identifying hot paths in the editor. All methods are no-ops in release builds; profiling is active only in debug/profile mode.

Functions

perfLog(String name, int microseconds) → void
Logs a single measurement to the Flutter DevTools timeline.
perfMeasure<T>(String name, T fn()) → T
Wraps fn with timing and logs the result.
perfMeasureAsync<T>(String name, Future<T> fn()) Future<T>
Async variant of perfMeasure.