Comments (1)
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)
- Cant compile gproftools with mips64 HOT 5
- armv7l compilation fails under -std=c++11 (works under -std=gnu++11) (was: Cant compile gproftools with armv7l) HOT 7
- pprof -disasm / -list fail on OS X due to renamed and incompatible objdump HOT 3
- pprof script bugged when testing out nm HOT 2
- heap-profiler check fails when built with gcc 4.8.0 but works when built with gcc 4.4.7 HOT 6
- Project Home page 2014->2015 HOT 1
- Callgrind output broken (patch provided) HOT 1
- Callgrind output does not handle inlined functions (patch provided) HOT 1
- Like a teeter totter,run slowly because call ThreadCache::FetchFromCentralCache and ThreadCache::ReleaseToCentralCache frequently HOT 3
- typo in PrintAvailability source code HOT 3
- Any plan to shift to CMake? HOT 1
- VIRT memory continues to grow when using 64k byte buffers HOT 4
- Linking libtorsocks with libtcmalloc results in SIGSEGV HOT 3
- What will be the official home for gperftools?
- On Windows 8.1, system-alloc_unittest fails an assert HOT 1
- recalloc is wrong in windows/override_functions.cc HOT 1
- src/malloc_hook_mmap_linux.h fails to compile with clang in C++11 mode when targeting 32 bit with _FILE_OFFSET_BITS=64 HOT 1
- Should heap profiling with mingw work? HOT 3
- src/gperftools/tcmalloc.h and src/windows/gperftools/tcmalloc.h report v2.3 HOT 2
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 gperftools.