end method

void end()

Implementation

void end() {
  if (!_enable) {
    return;
  }
  var curCost = 0;
  var currentEvent = _currentEvent;
  if (currentEvent != null) {
    currentEvent.endTime = currentTimeMillis();
    _events.add(currentEvent);
    curCost = currentEvent.endTime - currentEvent.startTime;
    LogUtils.profile(currentEvent.eventName, curCost);
  }

  _totalTime = currentTimeMillis() - _startTime;
  LogUtils.profile("totalTimeMonitor", _totalTime);
}