Skip to content

Profiling specific threads? #39743

@NHDaly

Description

@NHDaly

Are there any plans for configuring the Profile profiler to only collect profiles for a specific threadid?

It would be nice to e.g. only profile what's happening on threadid 1.

The use case I have in mind is that we're starting an HTTP.jl HTTP Server on thread 1, via HTTP.serve(server=tcp) do http_request ; ... end, which from what I understand uses @async to schedule the provided callback on new Tasks, on the current thread. I am interested in profiling the performance and utilization of just that one thread.

Is this something that could be easily supported and added to Profile? Or maybe something that could be performed in post-processing of the collected profile data? Do we record a thread id in the traces we collect? (I think we don't, but maybe i'm missing something?)

Thanks! 🙂 ❤️ 📈

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureIndicates new feature / enhancement requestsperformanceMust go faster

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions