lib/third_party/tracing/model/slice_group.js
function(category, title, ts, duration, tts,
                                cpuDuration, opt_args, opt_argsStripped,
                                opt_colorId, opt_bind_id) {
      var colorId = opt_colorId ||
          ColorScheme.getColorIdForGeneralPurposeString(title);
      var slice = new this.sliceConstructor(category, title, colorId, ts,
                                            opt_args ? opt_args : {},
                                            duration, tts, cpuDuration,
                                            opt_argsStripped, opt_bind_id);
      if (duration === undefined)
        slice.didNotFinish = true;
      this.pushSlice(slice);
      return slice;
    }
function(category, title, ts, duration, tts,
                                cpuDuration, opt_args, opt_argsStripped,
                                opt_colorId, opt_bind_id) {
      var colorId = opt_colorId ||
          ColorScheme.getColorIdForGeneralPurposeString(title);
      var slice = new this.sliceConstructor(category, title, colorId, ts,
                                            opt_args ? opt_args : {},
                                            duration, tts, cpuDuration,
                                            opt_argsStripped, opt_bind_id);
      if (duration === undefined)
        slice.didNotFinish = true;
      this.pushSlice(slice);
      return slice;
    }
function ( category , title , ts , duration , tts , cpuDuration , opt_args , opt_argsStripped , opt_colorId , opt_bind_id ) { var colorId = opt_colorId || ColorScheme . getColorIdForGeneralPurposeString ( title ) ; var slice = new this . sliceConstructor ( category , title , colorId , ts , opt_args ? opt_args : { } , duration , tts , cpuDuration , opt_argsStripped , opt_bind_id ) ; if ( duration === undefined ) slice . didNotFinish = true ; this . pushSlice ( slice ) ; return slice ; }
Push a complete event as a Slice into the slice list.
The timestamp can be in any order.

@param {String} category Category name of the slice to add.
@param {String} title Title of the slice to add.
@param {Number} ts The timetsamp of the slice, in milliseconds.
@param {Number} duration The duration of the slice, in milliseconds.
@param {Object.<string, Object>=} opt_args Arguments associated with
the slice.
@param {Number=} opt_colorId The color of the slice, as defined by
its palette id (see ui/base/color_scheme.html).
Push a complete event as a Slice into the slice list . The timestamp can be in any order .