Skip to content

export profiling as http handler #754

@zdyj3170101136

Description

@zdyj3170101136

Is your feature request related to a problem? Please describe.
when rss increase, but python heap profiling overhead is too large that i could not enabled it in production.

Describe the solution you'd like
accept profiling as http handler, return heap profiling data.
GET /debug/pprof/heap

so i could reduce overhead by only trigger profiling when rss is very high or only sampling 10% percent of my machine.

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