Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
96 views

I'm trying to profile my c++ code on macOS using gperftools and pprof. I have installed gperftools and I am able to successfully run g++ test.cpp -o test -lprofiler and CPUPROFILE=~/prof.out ./test. ...
Harith Laxman's user avatar
1 vote
1 answer
72 views

I am profiling some code using the cppgraphgqlgen library - which uses C++20 coroutines extensively in its internals. I have profiled an application and found that I have some called-into methods that ...
Andrew Lipscomb's user avatar
0 votes
0 answers
53 views

Starting from version 2.11, the file gperftools/profiler.h disappears. https://conan.io/center/recipes/gperftools?version=2.16 How to profile the application of recent versions if I want to install a ...
Leonid's user avatar
  • 115
0 votes
1 answer
149 views

My program experiences occasional memory spikes: The issue of memory consumption spiking occurs once every 5 to 7 runs. Each run takes a few minutes. I would like to use the heap profiler of ...
Alan's user avatar
  • 17
0 votes
1 answer
84 views

I have a customer library which will be invoked by java through JNI, then I want to do a profiling with that through gperftools, the code is below: Findgperftools: include(ExternalProject) set(...
Clay4megtr's user avatar
0 votes
0 answers
54 views

I want to do CPU profiling with gperftools by setting LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libprofiler.so.0 CPUPROFILE=/tmp/myprofile.out. It works fine on purely C++ environment, but gperftools doesn'...
Tinyden's user avatar
  • 604
1 vote
0 answers
2k views

I need the debug symbols for libc on Ubuntu 20.04 for performance profiling in gperftools (or perf). I checked how to install them and used: sudo apt-get install libc6-dbg After successfull ...
CodeMonkey's user avatar
  • 4,966
0 votes
1 answer
174 views

Due to certain restrictions I can not have golang as part of my environment. I would like to use the HEAPPROFILE generated by tcmalloc. To the best of my knowledge only way to make it human readable ...
Abhishek Kumar's user avatar
0 votes
0 answers
248 views

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 -...
msw1520's user avatar
  • 128
0 votes
0 answers
99 views

The original issue is here. After a few days, I find the problem is here. I tried to use the following CMakeLists.txt to build tcmalloc_minimal_static.lib: #... # https://github.com/gperftools/...
Duke M's user avatar
  • 1
1 vote
1 answer
343 views

I have read source code of gperftools(https://github.com/gperftools/gperftools/blob/f7c6fb6c8e99d6b1b725e5994373bcd19ffdf8fd/src/profile-handler.cc#:~:text=sevp.sigev_notify_thread_id%20%3D%20syscall(...
12 34's user avatar
  • 13
2 votes
0 answers
1k views

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 ...
Yunus King's user avatar
  • 1,351
0 votes
0 answers
436 views

tcmalloc is one part of gperftools. I discover the version of tcmalloc used in gperftools laest version(currently 2.10) entirely different from tcmalloc from github: https://github.com/google/tcmalloc....
Wu Jo's user avatar
  • 1
5 votes
1 answer
650 views

I am new to profiling and am trying to create a flat profile for my c++ project. Looks like gperftools is popular. I installed gperftools using Homebrew and followed this simple tutorial When I try ...
whitepatch's user avatar
0 votes
1 answer
331 views

I have a program that runs on a remote headless machine (ie no X server) that has a memory leak. I was able to install gperftools and ran the heap checker which found the leak. My problem is I can't ...
zephod's user avatar
  • 23
0 votes
1 answer
657 views

I do not know where to even start, apologies for the noob question but seems there's nothing on this specific case in SO unless there's more generic terms I do not know.
mlj's user avatar
  • 13
2 votes
3 answers
2k views

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 ...
Orif Milod's user avatar
1 vote
1 answer
379 views

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 ...
Pramod T's user avatar
1 vote
0 answers
72 views

I'm working on an R package that uses Rcpp and RcppArmadillo, and I'm trying to profile one of the main functions in the package to improve its runtime. I'm using gperftools as recommended by Dirk and ...
Matt Stone's user avatar
0 votes
0 answers
350 views

I've learned to install the gperftools on my server from the wiki of gperftools and some blogs . The commands are like these: yum -y install gcc make yum -y install gcc gcc-c++ # upload libunwind-1....
CH.Z's user avatar
  • 31
0 votes
1 answer
2k views

I am using gperftools to profile my C++ code, and the largest node is __GI___poll. It's being called by low level Qt and OpenCL code (mostly Qt), so it's several steps removed from my own code. My ...
geppettodivacin's user avatar
4 votes
2 answers
2k views

I've been trying to get gperftools CPU profiling working on my program. I'm running into an issue where all the function names in my program are pointer addresses when reported by pprof. Annoyingly, ...
Max C's user avatar
  • 409
4 votes
0 answers
756 views

I'm trying to cross-compile envoy (uses Bazel) on lubuntu 16.04 LTS for an aarch64 variant by using the Linaro toolchain at https://releases.linaro.org/components/toolchain/binaries/latest-7/aarch64-...
user2368778's user avatar
1 vote
0 answers
247 views

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 ...
Martvvliet's user avatar
0 votes
1 answer
1k views

On Windows when I static bind tcmalloc with my code, I see continuous memory growth, but there is no growth if I do not use tcmalloc. issue is not present in Linux. I have tried flags below flags: ...
Sumit's user avatar
  • 1
0 votes
1 answer
435 views

I recorded a *.gz file with heaptrack for my application. I want to use it to find out how much memory is wasted by using small allocations. Now my question is: Is it possible to filter the gz or ...
Desperado17's user avatar
  • 1,073
0 votes
1 answer
236 views

I want to analyse off-heap memory usage of jetty. So I use gperftools and add env to jetty.sh: export LD_PRELOAD=/usr/local/lib/libtcmalloc.so # export HEAPPROFILE=/home/cccccc/perftools/mybin It ...
fairjm's user avatar
  • 1,207
1 vote
1 answer
1k views

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 ...
EnzoMolion's user avatar
  • 1,057
1 vote
1 answer
3k views

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/...
Vince's user avatar
  • 4,521
3 votes
1 answer
565 views

This one comes up when running a program that was built with the address sanitizer and made me curious. The gperftools source code contains the following function: void MallocExtension::Register(...
choeger's user avatar
  • 3,597
6 votes
2 answers
4k views

I've configured and built gperftools. however, I can't seem to find the generated profile file of my program to display it. I took the following actions: Adding the -lprofiler linker flag to my .pro, ...
Eslam's user avatar
  • 153
5 votes
2 answers
1k views

I made an R package with Rcpp where whole simulations are run in c++ and results are analyzed in R. Now I need to profile my functions so I can optimize them, but R profilers can't distinguish what ...
MOzSalles's user avatar
  • 205
3 votes
1 answer
2k views

I am trying to profile multi-threaded workloads with gperftools but am having difficulty interpreting the output produced. I have written a simple program that launches two threads with identical ...
Niall Murphy's user avatar
0 votes
1 answer
488 views

I have been using google perf tools successfully on my pc. However, I am compiling and deploying for aarch64 architecture and the profiling results I get for x86 might not match up with aarch64. I ...
nimcap's user avatar
  • 10.6k
1 vote
1 answer
2k views

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 ...
MightyDodongo's user avatar
1 vote
0 answers
485 views

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% ...
Li.Cao's user avatar
  • 59
2 votes
2 answers
2k views

When I measure the run time of my Go program with Linux's time utility, I get the following output: real 1m9.177s user 7m1.788s sys 0m39.016s When I look at the output of the same exact ...
ns52's user avatar
  • 35
0 votes
1 answer
1k views

I spent the whole day trying to make gperftools working :/ I tired different libunwind versions but when I successed in installing it I got the following error "Profiling timer expired" whenever I ...
Zingo's user avatar
  • 650
5 votes
1 answer
2k views

I'm using gperftools to profile a C++ application, which was compiled using GCC 5.4.0 (with -O3). The code is highly optimized, so I don't see a lot of branches in the output, but there's a branch ...
Michael Spector's user avatar
2 votes
2 answers
969 views

I've read related posts here and here, and looked at Dirk Eddelbuettel's talk here and yet I'm failing to even get a .log file from gperftools. Here is my R file, called Rcpp_practice.R: library(...
Jason's user avatar
  • 894
0 votes
1 answer
510 views

I am trying to do heap profiling of C++ application on unix platform. I have tried valgrind's massif but it makes application very slow and affects behavior of the application. I was searching for ...
HadeS's user avatar
  • 2,038
0 votes
1 answer
841 views

I've got gperftools installed and collecting data, which looks reasonable so far. I see one node (?) that gets sampled a lot - but I'm interested in the callers to that node - I don't see them? I've ...
Jeff's user avatar
  • 2,029
2 votes
3 answers
7k views

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 <google/profiler.h> in my code, however my ...
noɥʇʎԀʎzɐɹƆ's user avatar
2 votes
1 answer
1k views

I am trying to CPU-profile a callback driven system and I'm only interested in profiling when the callback causes me to react a certain way ? Can I use gperftools to accomplish this ? ProfilerEnable()...
nisah's user avatar
  • 2,550
1 vote
1 answer
949 views

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: ...
Valentin Montmirail's user avatar
0 votes
0 answers
250 views

I've been recommended gperftools to simply and quickly profile my code. Furthermore, the integration of -lprofiler was already done in the CMAKE of the code I got. Now that I migrated the source code ...
Kriegalex's user avatar
  • 423
2 votes
1 answer
557 views

I have some gperf tool files: the first one was running about 2 minites,file is 18M; others running about 2 hours and the files are about 800M when I try to use :pprof --text to get the report, ...
asafu's user avatar
  • 25
0 votes
1 answer
546 views

After CPU profiling using gproftools (google profiler) it show some function name as hexadecimal values. According to last comment of https://groups.google.com/forum/#!topic/google-perftools/...
Tarinder Singh's user avatar
1 vote
0 answers
407 views

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 ...
Artem Mostyaev's user avatar
1 vote
1 answer
154 views

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 ...
Ken Y-N's user avatar
  • 15.2k