Home | History | Annotate | Download | only in chromium-trace

Lines Matching refs:startThread

72 base.exportTo("tracing",function(){function e(b,d,f,g,c){a.call(this,b,d,f,g,c)}function c(a){this.name=a;this.slices=[]}var a=tracing.TimelineSlice;e.prototype={__proto__:a.prototype,toJSON:function(){for(var a={},d=Object.keys(this),f=0;f<d.length;f++){var g=d[f];"function"!=typeof this[g]&&(a[g]="startThread"==g||"endThread"==g?this[g].ptid:this[g])}return a},id:void 0,startThread:void 0,endThread:void 0,subSlices:void 0};c.prototype={__proto__:Object.prototype,push:function(a){this.slices.push(a)},get length(){return this.slices.length},
74 {},d=0;d<this.slices.length;++d){var f=this.slices[d],g=f.startThread.ptid;a[g]||(a[g]=new c(this.name));a[g].slices.push(f)}var d=[],l;for(l in a)f=a[l],f.updateBounds(),d.push(f);return d}};return{TimelineAsyncSlice:e,TimelineAsyncSliceGroup:c}});"use strict";base.require("timeline_slice");base.require("timeline_slice_group");base.require("timeline_async_slice_group");
187 else if(void 0===c[g])this.model_.importErrors.push("At "+f.ts+", no slice named "+g+" was open.");else if(void 0===c[g][e])this.model_.importErrors.push("At "+f.ts+", no slice named "+g+" with id="+e+" was open.");else{var h=c[g][e];h.push(d);if("F"==f.ph){var j=new tracing.TimelineAsyncSlice(h[0].event.cat,g,tracing.getStringColorId(g),h[0].event.ts/1E3);j.duration=f.ts/1E3-h[0].event.ts/1E3;j.startThread=h[0].thread;j.endThread=d.thread;j.id=e;j.args=h[0].event.args;j.subSlices=[];for(d=1;d<h.length;++d){var k=
188 g;"T"==h[d-1].event.ph&&(k=g+":"+h[d-1].event.args.step);k=new tracing.TimelineAsyncSlice(h[0].event.cat,k,tracing.getStringColorId(g+d),h[d-1].event.ts/1E3);k.duration=h[d].event.ts/1E3-h[d-1].event.ts/1E3;k.startThread=h[d-1].thread;k.endThread=h[d].thread;k.id=e;k.args=h[d-1].event.args;j.subSlices.push(k)}var h=j.subSlices[j.subSlices.length-1],q;for(q in f.args)h.args[q]=f.args[q];j.startThread.asyncSlices.push(j);delete c[g][e]}}}}}}};tracing.TimelineModel.registerImporter(e);return{TraceEventImporter:e}});