Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
admin: Add optional /debug/pprof/profile endpoint (#2516)
This change introduces a new, optional /debug/pprof/profile.pb.gz endpoint to the proxy's admin server. This endpoint is feature-gated and, initially, it will not be included in release builds. It replicates Go's /debug/pprof/profile, but it always returns gzipped protobuf (i.e. as can be read by pprof pprofutils). When the feature is enabled, profiling requests are only permitted over the loopback interface. The development Dockerfile is updated to prevent stripping debug symbols when pprof is enabled so that the pprof data has useful names. Co-authored-by: Eliza Weisman <[email protected]>
- Loading branch information