Questions tagged [gperftools]

Perftools is a collection of a high-performance multi-threaded malloc() implementation, plus some pretty nifty performance analysis tools.

Perftools is a collection of a high-performance multi-threaded malloc() implementation, plus some pretty nifty performance analysis tools.

71 questions
1
vote
0 answers

Profiling waiting threads with perf or other tools

In a multithreaded program, how can one effectively profile threads that are waiting on a lock, are sleeping or are scheduled out in some other way? For my profiling purposes I need to have insight in some lock contention. So I would like to see…
Yunus King
  • 1,141
  • 1
  • 11
  • 23
1
vote
2 answers

gperftools not installing -lprofiler on Mac after installing it with brew

Recently I wanted to profile my cpp code and came across gperftool, but there aren't really clear instructions on how to use it with Mac. So far I have run brew install gperftools and wanted to compile my simple cpp file which just outputs "Hello…
Orif Milod
  • 465
  • 1
  • 7
  • 17
1
vote
1 answer

gperftools/tcmalloc 2.8 - running out of memory

We are migrating from gperftools/tcmalloc 2.0 to 2.8. But some of our test cases fail with "out of memory" error. We use Cent OS 6.5. This happens with a posix_memalign() call requesting for 32536008 bytes with 64bit alignment. I didn't use any…
Pramod T
  • 21
  • 3
1
vote
0 answers

Profiling issues C++ on a Jetson TX2. Function names are not displayed

I'm having issues with profiling my C++ code on a Jetson TX2. The profiling itself works, but I don't get the function names, but instead, it says that a part is unknown. I installed pprof with go and it works on my Raspberry Pi, zo i guess id did…
Martvvliet
  • 11
  • 1
1
vote
1 answer

Use gperftools' heap profiler to profile libc malloc

I am trying to profile an application to compare its performance using different allocation strategies. I have no trouble profiling it when using tcmalloc but how to profile it using libc's allocation functions ? Indeed, enabling gperftool's heap…
EnzoMolion
  • 949
  • 8
  • 25
1
vote
1 answer

cmake : failing to link against google profiler (gperftools)

I am on ubuntu 16.04. Here what I did: installed gperftools : sudo apt-get install google-perftools libgoogle-perftools-dev downloaded FindGperftools.cmake from: https://github.com/vast-io/vast/blob/master/cmake/FindGperftools.cmake renamed…
Vince
  • 3,979
  • 10
  • 41
  • 69
1
vote
1 answer

gperftools and pprof do not print my function names. Need advice on how to fix this

I'm currently writing a game in C++ using SDL on Ubuntu. I recently multithreaded my engine, so I switched from profiling with valgrind/callgrind to gperftools. I have gotten it to work, but it will not print my own function names. Oddly enough, it…
MightyDodongo
  • 101
  • 1
  • 4
1
vote
0 answers

Why are some function names are address in gperftools report?

I'm using gperftools to proflie my program and try to optimize it. After running my program with gperftools, I got this: Total: 2902 samples 2765 95.3% 95.3% 2765 95.3% 0xb76e7cb0 93 3.2% 98.5% 93 3.2% 0xb76e7cb1 10 0.3% …
Li.Cao
  • 59
  • 5
1
vote
2 answers

Problems with using gperftools on Mac OS X

I have found several conflicting answers over this topic. This blog post requires libuwind, but that doesn't work on Mac OS X. I included #include in my code, however my compiler (g++) could not find the library. I installed…
noɥʇʎԀʎzɐɹƆ
  • 9,967
  • 2
  • 50
  • 67
1
vote
1 answer

Using GPerf Tool: not working, issue with redirection?

I'm trying to profile my software in order to optimize it. I used gprof with the compilation flag -g -pg -O3 but the result are not giving me enough precision. Here is my Stacktrace of compilation: $: make clean; make; rm -f ./obj/*.o rm -f…
Valentin Montmirail
  • 2,594
  • 1
  • 25
  • 53
1
vote
0 answers

LNK2005 error when trying to link with tcmalloc

I've trying to compile a project with tcmalloc in Visual Studio 2013. I've compiled .lib file for libtcmalloc from gperftools package and added libtcmalloc.lib into linker input options. When I'm trying to build my project, I get the following…
Artem Mostyaev
  • 3,874
  • 10
  • 53
  • 60
1
vote
1 answer

Cannot profile threads in a library

I'm trying to use the Google Performance Tools, specifically the official release in the 64-bit Ubuntu 14.04 repository, to debug an application and its associated .so library. Running with minimal changes, just ensuring -g is set, gets me a trace,…
Ken Y-N
  • 14,644
  • 21
  • 71
  • 114
1
vote
3 answers

tcmalloc not working on ubuntu using -ltcmalloc_minimal

I installed tcmalloc on Ubuntu 14.0 using apt-get install libtcmalloc-minimal4 I did following steps: ln -s libtcmalloc_minimal.so.4.1.2 libtcmalloc_minimal.so linked my executable with -ltcmalloc_minimal After running the code, I can not see any…
komal dedhia
  • 217
  • 1
  • 3
  • 8
1
vote
2 answers

gperftools failing to identify files

Is there a way to avoid Google Performance Tools listing files as "??:?", that is, failing to locate which file contains the function it is reporting on? How can I work out which library contains the function being called? $ env…
benjimin
  • 4,043
  • 29
  • 48
0
votes
0 answers

Heap profiling with gperftools and Rcpp: Failing to link against tcmalloc

I'm trying to get a memory profile of my C++ library running under R. Following https://gperftools.github.io/gperftools/heapprofile.html I link against tmalloc, but the build fails. g++ -std=gnu++11 -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions…
msw1520
  • 113
  • 1
  • 7