Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bazel/PPROF.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ specific place yourself.

Static linking is already available (because of a `HeapProfilerDump()` call
inside
[`Envoy::Profiler::Heap::forceLink()`](https://github.com/envoyproxy/envoy/blob/master/source/common/profiler/profiler.cc#L21-L26)).
[`Envoy::Profiler::Heap::stopProfiler())`](https://github.com/envoyproxy/envoy/blob/master/source/common/profiler/profiler.cc#L32-L39)).

### Compiling a statically-linked Envoy

Expand Down
7 changes: 0 additions & 7 deletions source/common/profiler/profiler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,6 @@ bool Heap::stopProfiler() {
return true;
}

void Heap::forceLink() {
// Currently this is here to force the inclusion of the heap profiler during static linking.
// Without this call the heap profiler will not be included and cannot be started via env
// variable. In the future we can add admin support.
HeapProfilerDump("");
}

} // namespace Profiler
} // namespace Envoy

Expand Down
3 changes: 0 additions & 3 deletions source/common/profiler/profiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,6 @@ class Heap {
* @return bool whether the file is dumped
*/
static bool stopProfiler();

private:
static void forceLink();
};

} // namespace Profiler
Expand Down