envoyproxy / envoyproxy/envoy

pprof: Use Google's tcmalloc heap profiling capabilities

Open
#16,506 18 comments 0 reactions 1 assignee Assigned to @wbpcode View on GitHub
enhancement no stalebot
Dominant language
C++
Stars
28.9k
Forks
5.6k
Avg merge
1d 20h
Merged PRs (30d)
437

Description

*Description*:
If envoy is built with Google's tcmalloc (default setup for linux-amd64 platform) there is no heap profiling support anymore.

It is possible however to implement `/debug/pprof/heap` admin endpoint using tcmalloc's profiling API.

*Relevant Links*:
tcmalloc API: https://github.com/google/tcmalloc/blob/21eabdde8d9c4ce21e4785d7a7af71a6eaec2d1c/tcmalloc/malloc_extension.h#L403

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.