This repository was archived by the owner on Nov 6, 2020. It is now read-only.
This repository was archived by the owner on Nov 6, 2020. It is now read-only.
Make accessing time.self
a bit more ergonomic... #19
Open
Description
As far as I can tell, the only (non-underscored) way to get a given nodes self time is something like:
function selfTime(node) {
for (let [statName, value] of node.statsIterator()) {
if (statName === 'time.self') {
return value;
}
}
}
Which is actually pretty annoying if all you need is the self time...
I do not have a specific API in mind, but I feel like we can come up with something better.
Metadata
Metadata
Assignees
Labels
No labels