Emit an instant event for this task.
Source
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));
}