Skip to content
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
@rwjblue

Description

@rwjblue

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions