Skip to content

Misattributed parent with accurate line number #349

Open
@nolanmar511

Description

Profiling with agent from PR #258
This is the script I profiled (I ran with --noturbo-inlining):
busybench-3.txt

This is the javascript object I return from the binding: parent-wrong.txt.
The function f2 is a a child of busyloop, in this, so it's not just and issue with serialization. There's a node where f2's line number is 46 (the line number from which f1 is called)

Here's a graph of the profile:
image

@psmarshall -- any ideas?

Metadata

Assignees

No one assigned

    Labels

    api: cloudprofilerIssues related to the googleapis/cloud-profiler-nodejs API.externalThis issue is blocked on a bug with the actual product.priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions