Giter VIP home page Giter VIP logo

Comments (4)

alaxwang avatar alaxwang commented on September 13, 2024 2

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.

ckennelly avatar ckennelly commented on September 13, 2024 1

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.

satyamshekhar avatar satyamshekhar commented on September 13, 2024

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.

ckennelly avatar ckennelly commented on September 13, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.