Comments (4)
Na
The API in
malloc_extension.h
provides access to TCMalloc's heap profiler. This covers
- Snapshots (
tcmalloc::MallocExtension::SnapshotCurrent
), such as the sampled heap profile of current live objects. We also collect a peak heap profile when the application heap (by user-accessible bytes) hits a high water mark.- An allocation profile (
tcmalloc::MallocExtension::StartAllocationProfiling
), to collect a time series of sampled allocations during that session.We have not yet open-sourced a library for converting from this profile to the protocol buffer format understood by https://github.com/google/pprof.
Any progress on open-sourced library for converting Profile to protocol buffer format understood by https://github.com/google/pprof.
It will be very useful to have a tool to looking at the memory profile.
from tcmalloc.
The API in malloc_extension.h
provides access to TCMalloc's heap profiler. This covers
- Snapshots (
tcmalloc::MallocExtension::SnapshotCurrent
), such as the sampled heap profile of current live objects. We also collect a peak heap profile when the application heap (by user-accessible bytes) hits a high water mark. - An allocation profile (
tcmalloc::MallocExtension::StartAllocationProfiling
), to collect a time series of sampled allocations during that session.
We have not yet open-sourced a library for converting from this profile to the protocol buffer format understood by https://github.com/google/pprof.
from tcmalloc.
Hello,
Is there a recommended workaround for this issue? Using TCMalloc without access to a usable view of the memory profile is very limiting for any serious development.
Also, I would love to learn about the timeline for the fix.
Regards,
Satyam
from tcmalloc.
As of 5d5968a, there is an interface (in tcmalloc/profile_marshaler.h, tcmalloc::Marshal
) for converting from the profile instance collected by TCMalloc to a binary-encoded profile suitable for use with https://github.com/google/pprof.
from tcmalloc.
Related Issues (20)
- OSS-Fuzz issue 65919 HOT 1
- OSS-Fuzz issue 66172 HOT 1
- MADV_COLLAPSE
- Failed to build tcmalloc, Error info: junk at end of line HOT 1
- Quick start guide broken
- How to access tcmalloc MallocExtensions? HOT 1
- Help with heap profiler. HOT 1
- Compiling Issues on aarch64 HOT 2
- OSS-Fuzz issue 67559
- GuardedPageAllocator appears in stack trace when ActivateGuardedSampling() has not been called HOT 10
- OSS-Fuzz issue 68039 HOT 1
- OSS-Fuzz issue 68082
- Per cpu cache of bigger sizes HOT 7
- Compiler error HAVE_SBRK HOT 1
- Compilation Error with tcmalloc: ‘static constexpr bool absl::lts_20230125::base_internal::SpinLock::IsCooperative’ is private within this context HOT 1
- Use more memory than default c++ HOT 1
- tcmalloc cannot optimize dynamic memory allocation caused by std::vector. HOT 11
- GWP-ASan may report segv in multi-thread when write_overflow/double_free detected at free?
- Is there a debugging document of tcmalloc? HOT 7
- mmap failed, when offset is physical address HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tcmalloc.