Git Product home page Git Product logo

Comments (1)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 15, 2024
BTW if you you're checking leaks you should be using HEAPCHECK as opposed to 
HEAPPROFILE which is for profiling.

In both cases tcmalloc spends some memory for all allocations to track whether 
it's free or not and where it was allocated. So there is some (possibly large) 
multiplier of memory used by your app spent on tracking memory.

If I'm right than your program indeed leaks memory and tcmalloc heap profiler 
overhead simply makes it worse. In that case consider:

a) using heap checker rather than heap profiler

b) making your program exit sooner, before it exhausted all RAM

c) or consider some programmatic API that allows checking for leaks at runtime 
(see heap checker documentation)

I'm going to mark this bug as NotABug because memory usage of heap 
{profiler,checker} is by design. But there is of course some chance that you're 
hitting some bug in tcmalloc. If so, please reopen this ticket with more 
evidence after you've checked it's not your program's fault.

Original comment by alkondratenko on 7 Feb 2015 at 7:30

  • Changed state: NotABug

from gperftools.

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.