instantSync method

void instantSync (String name, { Map arguments })

Emit an instant event.

Implementation

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