perfLog function

void perfLog(
  1. String name,
  2. int microseconds
)

Logs a single measurement to the Flutter DevTools timeline.

Implementation

void perfLog(String name, int microseconds) {
  if (!_enabled) return;
  developer.Timeline.instantSync(name, arguments: {
    'duration_us': microseconds,
    'category': 'fluent_editor',
  });
}