Hi, this is just a question, so please feel free to close if it's not appropriate.
I was hoping to use the array of tasks returned by tracium with flatten=true to replicate the Chrome devtools bottom-up view with group by url turned on.
My code basically:
filters the tracium-returned tasks to those with a kind of scriptParseCompile and which have a event.args.data.url.
feeds the lineNumber, columnNumber, and url from the event.args.data into the source-map library (along with the relevant sourcemap), receiving an original source location in return.
aggregates the different sources based on the selfTime value returned by tracium.
While this yields something that looks reasonable, when I compare the results to the bottom-up tab in the devtools viewer, they are quite off, with many entries visible in the devtools but missing from my scripted version.
Can you see anything obviously off with my approach as I've described it?
Hi, this is just a question, so please feel free to close if it's not appropriate.
I was hoping to use the array of tasks returned by tracium with
flatten=true
to replicate the Chrome devtools bottom-up view withgroup by url
turned on.My code basically:
scriptParseCompile
and which have aevent.args.data.url
.lineNumber
,columnNumber
, andurl
from theevent.args.data
into the source-map library (along with the relevant sourcemap), receiving an original source location in return.selfTime
value returned bytracium
.While this yields something that looks reasonable, when I compare the results to the bottom-up tab in the devtools viewer, they are quite off, with many entries visible in the devtools but missing from my scripted version.
Can you see anything obviously off with my approach as I've described it?