void instantSync(String name, { Map arguments })

Emit an instant event.

Source

static void instantSync(String name, {Map arguments}) {
  if (_isProduct) {
    return;
  }
  if (name is! String) {
    throw new ArgumentError.value(name, 'name', 'Must be a String');
  }
  if (!_isDartStreamEnabled()) {
    // Stream is disabled.
    return;
  }
  Map instantArguments;
  if (arguments is Map) {
    instantArguments = new Map.from(arguments);
  }
  _reportInstantEvent(
      _getTraceClock(), 'Dart', name, _argumentsAsJson(instantArguments));
}