Questions tagged [google-perftools]

Google performance tool for CPU and Heap profiling

Google performance tool for CPU and Heap profiling. Originally known as google-perftools, later renamed to gperftools.

Main script of profile analysing in gperftools is called pprof (or sometimes google-pprof)

There are libraries in gperftools project: libtcmalloc.so and libprofiler.so

http://code.google.com/p/gperftools

40 questions
3
votes
1 answer

Format of google-perftools/pprof with heap profiling

There is a pprof utility in google-perftools package. It is utility to convert profile files from google-perftools cpuprofiler and heapprofiler into beautiful images: like https://github.com/gperftools/gperftools/tree/master/doc/pprof-test-big.gif…
osgx
  • 90,338
  • 53
  • 357
  • 513
3
votes
2 answers

Install tcmalloc on CentOS

I installed tcmalloc on CentOS using the command: sudo yum install google-perftools And it proceeds correctly. But I cannot find any installed perftools libraries in /usr/lib/, so I cannot set LD_PRELOAD variable. Then, when I tried to compile…
hiimdaosui
  • 361
  • 2
  • 12
2
votes
2 answers

pprof tells me that getaliasbyname_r() occupied 56% of cpu time?

I'm using google-perftools to profile my program written in C++ and compiled with g++4.5.2. pprof tells me that getaliasbyname_r() occupied 56% of cpu time! What on earth does getaliasbyname_r() do? Why does it take so much cpu time? Is there a way…
updogliu
  • 6,066
  • 7
  • 37
  • 50
2
votes
1 answer

substitution for googleperf tools that works on 64 bit Linux

As some of you might know Google provides for free great collection of tools for analyzing c++ code: http://code.google.com/p/google-perftools/ Problem is that there is apparently some libunwind problem on 64 bits, and authors can't do anything on…
NoSenseEtAl
  • 28,205
  • 28
  • 128
  • 277
2
votes
0 answers

How to use perftools under windows

From the Readme.txt in the source, I know that it has not been tested under windows system. Does anyone know how to make it work anyway?
YangH
  • 57
  • 4
2
votes
1 answer

Install tcmalloc from source to link without bazel?

I'd like to install tcmalloc from source. I'm on centos8. I'd install from yum but don't see any google-perf or gperf or anything of the sort available. (I did do yum check-update.) The instructions on the tcmalloc github sure are simple. Install…
user2183336
  • 706
  • 8
  • 19
2
votes
2 answers

How to generate graphs from .heap files created by google HEAPPROFILER

Like the question says I created some .heap files using awesome google perftools and now I cant view them(ofc i can open them in the vim, but I want graphical representation )... I tried using the (like in the documentation) pprof --gv…
NoSenseEtAl
  • 28,205
  • 28
  • 128
  • 277
2
votes
1 answer

Why does linking with tcmalloc reduce my memory usage by 500MB?

In my program I create 5 vectors, each with 1 million elements. When I compile my program with O3 optimization, it takes around 2 GB while running. However, if I compile with O3 opitimization and link with the tcmalloc library provided by…
Shubham
  • 352
  • 3
  • 14
1
vote
1 answer

Installing perftools.rb via proxy

sudo gem install perftools.rb -p http://10.10.10.10:3128 ... /usr/local/lib/ruby/1.9.1/net/http.rb:762:in "initialize": Connection refused - connect(2) (Errno::ECONNREFUSED) ... Requesting…
Sergii Shevchyk
  • 38,716
  • 12
  • 50
  • 61
1
vote
1 answer

Compiling Python 2.7.2 with google-perftools

I have a debian squeeze operating system (64 bits). I want to use python with google-perftools. To perform that I compiled myself python 2.72 with the option "-lctmalloc". But I get few errors. I installed libuwind because google-perftool asks for…
Mr_Kaz
  • 73
  • 1
  • 9
1
vote
1 answer

Regarding HEAPCHECK of google-perftools

I need to fix leaks in a huge open-source library. For that I am using google-perftools, Now this library is linked in another big application, which can also have possibaly lots of memory leaks [ Finding leaks from an application is not my…
SunnyShah
  • 28,934
  • 30
  • 90
  • 137
1
vote
3 answers

Google BigQuery DML - Slow performance when executing updates & deletes

I have running few BigQuery DML tests to get a better idea of the performance of BigQuery DML capabilities. So far, here are some initial observations: 1) Slow performance when updating only a few records in a very small table (30K+ records) UPDATE…
1
vote
1 answer

CPU profiler on Google Performance Tool (gperftools) - Process with shared library with NO OUTPUT ISSUE

I had a process on a server. My process uses a shared lib, runing in the linux background. I use CPU profiler in gperftool to examine the functions. The steps is following: 1. in my app, main () { ProfilerStart("dump.txt"); ...code.. …
Vu Nguyen
  • 11
  • 3
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
1
vote
1 answer

Why tcmalloc don't print function name, which provided via dlopen

I have next some project: main.cpp #include #include #include int main() { void* handle = dlopen("./shared_libs/libshared.so", RTLD_LAZY); if (NULL == handle) { std::cerr << "Cannot open library: "…