start method

void start (String name, { Map arguments })

Start a synchronous operation within this task named name. Optionally takes a Map of arguments.

Implementation

void start(String name, {Map arguments}) {
  if (!_hasTimeline) return;
  ArgumentError.checkNotNull(name, 'name');
  var block = new _AsyncBlock._(name, _taskId);
  _stack.add(block);
  block._start({
    if (arguments != null) ...arguments,
    if (_parent != null) 'parentId': _parent._taskId.toRadixString(16),
  });
}