File tree 1 file changed +23
-24
lines changed
1 file changed +23
-24
lines changed Original file line number Diff line number Diff line change @@ -235,37 +235,36 @@ class ProfileGen {
235
235
}
236
236
237
237
var mainTid = threads [0 ].tid ;
238
- var json : Array <Dynamic > = [];
239
- for ( t in threads ) {
240
- json .push ({
238
+ var json : Array <Dynamic > = [for ( t in threads )
239
+ {
241
240
pid : 0 ,
242
241
tid : t .tid ,
243
242
ts : 0 ,
244
243
ph : " M" ,
245
244
cat : " __metadata" ,
246
245
name : " thread_name" ,
247
246
args : { name : t .name }
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
- }
247
+ }
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 : 0 ,
266
+ ts : 0
267
+ });
269
268
270
269
var count = 1 ;
271
270
var f0 = threads [0 ].frames [0 ];
You can’t perform that action at this time.
0 commit comments