this.heading = this.thread_.userFriendlyName + ': ';
this.tooltip = this.thread_.userFriendlyDetails;
- if (this.thread_.asyncSliceGroup.length) {
- var asyncTrack = new tracing.tracks.AsyncSliceGroupTrack(this.viewport);
- asyncTrack.group = this.thread_.asyncSliceGroup;
- if (asyncTrack.hasVisibleContent)
- this.appendChild(asyncTrack);
- }
+ if (this.thread_.asyncSliceGroup.length)
+ this.appendAsyncSliceTracks_();
this.appendThreadSamplesTracks_();
}
},
+ appendAsyncSliceTracks_: function() {
+ var subGroups = this.thread_.asyncSliceGroup.titleSubGroups;
+ subGroups.forEach(function(subGroup) {
+ var asyncTrack = new tracing.tracks.AsyncSliceGroupTrack(this.viewport);
+ var title = subGroup.slices[0].title;
+ asyncTrack.group = subGroup;
+ asyncTrack.heading = title;
+ if (asyncTrack.hasVisibleContent)
+ this.appendChild(asyncTrack);
+ }, this);
+ },
+
appendThreadSamplesTracks_: function() {
var threadSamples = this.thread_.samples;
if (threadSamples === undefined || threadSamples.length === 0)