instant method

void instant(
  1. String name, {
  2. String category = 'app',
  3. Map<String, Object?> args = const <String, Object?>{},
  4. CockpitPerformanceLocation? location,
})

Implementation

void instant(
  String name, {
  String category = 'app',
  Map<String, Object?> args = const <String, Object?>{},
  CockpitPerformanceLocation? location,
}) {
  _record(
    name: name,
    category: category,
    timestampUs: nowUs,
    durationUs: 0,
    phase: 'i',
    args: args,
    location: location,
    kind: _PluginEventKind.instant,
  );
}