File tree 1 file changed +24
-4
lines changed
1 file changed +24
-4
lines changed Original file line number Diff line number Diff line change @@ -235,17 +235,37 @@ class ProfileGen {
235
235
}
236
236
237
237
var mainTid = threads [0 ].tid ;
238
- var json : Array <Dynamic > = [for ( t in threads )
239
- {
238
+ var json : Array <Dynamic > = [];
239
+ for ( t in threads ) {
240
+ json .push ({
240
241
pid : 0 ,
241
242
tid : t .tid ,
242
243
ts : 0 ,
243
244
ph : " M" ,
244
245
cat : " __metadata" ,
245
246
name : " thread_name" ,
246
247
args : { name : t .name }
247
- }
248
- ];
248
+ });
249
+ json .push ({
250
+ args : {
251
+ data : {
252
+ frameTreeNodeId : 0 ,
253
+ frames : [
254
+ {
255
+ processId : 0 ,
256
+ url : " http://_"
257
+ }
258
+ ],
259
+ persistentIds : true
260
+ }
261
+ },
262
+ cat : " disabled-by-default-devtools.timeline" ,
263
+ name : " TracingStartedInBrowser" ,
264
+ pid : 0 ,
265
+ tid : t .tid ,
266
+ ts : 0
267
+ });
268
+ }
249
269
250
270
var count = 1 ;
251
271
var f0 = threads [0 ].frames [0 ];
You can’t perform that action at this time.
0 commit comments