Skip to content

Use xctrace on macOS  #246

@kraktus

Description

@kraktus

This is a crosspost from the flamegraph repo: flamegraph-rs/flamegraph#192

Right now flamegraph uses dtrace on macOS but this runs into some limitations:

Inline frames are not properly handled (flamegraph-rs/flamegraph#113)
Running dtrace requires root rights
dtrace is generally considered deprecated functionality on macOS and will likely disappear longer term
One potential solution is to switch to xctrace and then implement a reader for the .trace / .run files. speedscope appears to have partial support for these files but I haven't been able to make it work at all yet. There is an issue from a while ago that it's not working (jlfwong/speedscope#196) but the code there might still be useful.

Although not familiar with the codebase I'd be ready to give it a go, but would it falls into the scope of inferno or do you not want to support an additional profiler?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions