Skip to content

Commit

Permalink
Fix profiler: add TracingStartedInBrowser data (#652)
Browse files Browse the repository at this point in the history
  • Loading branch information
SpiraTom authored Feb 7, 2024
1 parent e4cad97 commit 040d789
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions other/profiler/ProfileGen.hx
Original file line number Diff line number Diff line change
Expand Up @@ -235,17 +235,37 @@ class ProfileGen {
}

var mainTid = threads[0].tid;
var json : Array<Dynamic> = [for( t in threads )
{
var json : Array<Dynamic> = [];
for( t in threads ) {
json.push({
pid : 0,
tid : t.tid,
ts : 0,
ph : "M",
cat : "__metadata",
name : "thread_name",
args : { name : t.name }
}
];
});
json.push({
args: {
data: {
frameTreeNodeId: 0,
frames: [
{
processId: 0,
url: "http://_"
}
],
persistentIds: true
}
},
cat: "disabled-by-default-devtools.timeline",
name: "TracingStartedInBrowser",
pid: 0,
tid: t.tid,
ts: 0
});
}

var count = 1;
var f0 = threads[0].frames[0];
Expand Down

0 comments on commit 040d789

Please sign in to comment.