lib/third_party/tracing/model/slice.js
function Slice(category, title, colorId, start, args, opt_duration,
                 opt_cpuStart, opt_cpuDuration, opt_argsStripped,
                 opt_bind_id) {
    tr.model.TimedEvent.call(this, start);

    this.category = category || '';
    this.title = title;
    this.colorId = colorId;
    this.args = args;
    this.startStackFrame = undefined;
    this.endStackFrame = undefined;
    this.didNotFinish = false;
    this.inFlowEvents = [];
    this.outFlowEvents = [];
    this.subSlices = [];
    this.selfTime = undefined;
    this.cpuSelfTime = undefined;
    this.important = false;
    this.parentContainer = undefined;
    this.argsStripped = false;

    this.bind_id_ = opt_bind_id;

    // parentSlice and isTopLevel will be set by SliceGroup.
    this.parentSlice = undefined;
    this.isTopLevel = false;
    // After SliceGroup processes Slices, isTopLevel should be equivalent to
    // !parentSlice.

    if (opt_duration !== undefined)
      this.duration = opt_duration;

    if (opt_cpuStart !== undefined)
      this.cpuStart = opt_cpuStart;

    if (opt_cpuDuration !== undefined)
      this.cpuDuration = opt_cpuDuration;

    if (opt_argsStripped !== undefined)
      this.argsStripped = true;
  }
function Slice(category, title, colorId, start, args, opt_duration,
                 opt_cpuStart, opt_cpuDuration, opt_argsStripped,
                 opt_bind_id) {
    tr.model.TimedEvent.call(this, start);

    this.category = category || '';
    this.title = title;
    this.colorId = colorId;
    this.args = args;
    this.startStackFrame = undefined;
    this.endStackFrame = undefined;
    this.didNotFinish = false;
    this.inFlowEvents = [];
    this.outFlowEvents = [];
    this.subSlices = [];
    this.selfTime = undefined;
    this.cpuSelfTime = undefined;
    this.important = false;
    this.parentContainer = undefined;
    this.argsStripped = false;

    this.bind_id_ = opt_bind_id;

    // parentSlice and isTopLevel will be set by SliceGroup.
    this.parentSlice = undefined;
    this.isTopLevel = false;
    // After SliceGroup processes Slices, isTopLevel should be equivalent to
    // !parentSlice.

    if (opt_duration !== undefined)
      this.duration = opt_duration;

    if (opt_cpuStart !== undefined)
      this.cpuStart = opt_cpuStart;

    if (opt_cpuDuration !== undefined)
      this.cpuDuration = opt_cpuDuration;

    if (opt_argsStripped !== undefined)
      this.argsStripped = true;
  }
function Slice ( category , title , colorId , start , args , opt_duration , opt_cpuStart , opt_cpuDuration , opt_argsStripped , opt_bind_id ) { tr . model . TimedEvent . call ( this , start ) ; this . category = category || '' ; this . title = title ; this . colorId = colorId ; this . args = args ; this . startStackFrame = undefined ; this . endStackFrame = undefined ; this . didNotFinish = false ; this . inFlowEvents = [ ] ; this . outFlowEvents = [ ] ; this . subSlices = [ ] ; this . selfTime = undefined ; this . cpuSelfTime = undefined ; this . important = false ; this . parentContainer = undefined ; this . argsStripped = false ; this . bind_id_ = opt_bind_id ; // parentSlice and isTopLevel will be set by SliceGroup. this . parentSlice = undefined ; this . isTopLevel = false ; // After SliceGroup processes Slices, isTopLevel should be equivalent to // !parentSlice. if ( opt_duration !== undefined ) this . duration = opt_duration ; if ( opt_cpuStart !== undefined ) this . cpuStart = opt_cpuStart ; if ( opt_cpuDuration !== undefined ) this . cpuDuration = opt_cpuDuration ; if ( opt_argsStripped !== undefined ) this . argsStripped = true ; }
A Slice represents an interval of time plus parameters associated
with that interval.

@constructor
A Slice represents an interval of time plus parameters associated with that interval .