Skip to content

Commit

Permalink
Profiler: fixed fix for threads (#653)
Browse files Browse the repository at this point in the history
  • Loading branch information
SpiraTom authored Feb 7, 2024
1 parent fc4a2db commit c9b4e9a
Showing 1 changed file with 23 additions and 24 deletions.
47 changes: 23 additions & 24 deletions other/profiler/ProfileGen.hx
Original file line number Diff line number Diff line change
Expand Up @@ -235,37 +235,36 @@ class ProfileGen {
}

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

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

0 comments on commit c9b4e9a

Please sign in to comment.