www/category-category-module-es5.js
/**
       * @param name The name of the trace.
       * @param isAuto If the trace is auto-instrumented.
       * @param traceMeasureName The name of the measure marker in user timing specification. This field
       * is only set when the trace is built for logging when the user directly uses the user timing
       * api (performance.mark and performance.measure).
       */
@param name The name of the trace.
@param isAuto If the trace is auto-instrumented.
@param traceMeasureName The name of the measure marker in user timing specification. This field
is only set when the trace is built for logging when the user directly uses the user timing
api (performance.mark and performance.measure).
@param name The name of the trace . @param isAuto If the trace is auto - instrumented . @param traceMeasureName The name of the measure marker in user timing specification . This field is only set when the trace is built for logging when the user directly uses the user timing api ( performance . mark and performance . measure ) .
function Trace(name, isAuto, traceMeasureName) {
        if (isAuto === void 0) {
          isAuto = false;
        }
        this.name = name;
        this.isAuto = isAuto;
        this.state = 1
        ;
        this.customAttributes = {};
        this.counters = {};
        this.api = Api.getInstance();
        this.randomId = Math.floor(Math.random() * 1000000);
        if (!this.isAuto) {
          this.traceStartMark = TRACE_START_MARK_PREFIX + "-" + this.randomId + "-" + this.name;
          this.traceStopMark = TRACE_STOP_MARK_PREFIX + "-" + this.randomId + "-" + this.name;
          this.traceMeasure = traceMeasureName || TRACE_MEASURE_PREFIX + "-" + this.randomId + "-" + this.name;
          if (traceMeasureName) {
            this.calculateTraceMetrics();
          }
        }
      }
function Trace ( name , isAuto , traceMeasureName ) { if ( isAuto === void 0 ) { isAuto = false ; } this . name = name ; this . isAuto = isAuto ; this . state = 1 ; this . customAttributes = { } ; this . counters = { } ; this . api = Api . getInstance ( ) ; this . randomId = Math . floor ( Math . random ( ) * 1000000 ) ; if ( ! this . isAuto ) { this . traceStartMark = TRACE_START_MARK_PREFIX + "-" + this . randomId + "-" + this . name ; this . traceStopMark = TRACE_STOP_MARK_PREFIX + "-" + this . randomId + "-" + this . name ; this . traceMeasure = traceMeasureName || TRACE_MEASURE_PREFIX + "-" + this . randomId + "-" + this . name ; if ( traceMeasureName ) { this . calculateTraceMetrics ( ) ; } } }
@param name The name of the trace.
@param name The name of the trace .
/* UNINITIALIZED */ // For the case of direct user timing traces, no start stop will happen. The measure object // is already available.