Emit an instant event for this task.
void instant(String name, {Map arguments}) { if (_isProduct) { return; } if (name is! String) { throw new ArgumentError.value(name, 'name', 'Must be a String'); } Map instantArguments; if (arguments is Map) { instantArguments = new Map.from(arguments); } _reportTaskEvent(_getTraceClock(), _taskId, 'n', 'Dart', name, _argumentsAsJson(instantArguments)); }
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/2.0.0/dart-developer/TimelineTask/instant.html