Personal tools
You are here: Home UiT Stallo Documentation Stallo User Guide Using google-perftools
Document Actions

Using google-perftools

Up to Table of Contents

Overview

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

For more information visit http://code.google.com/p/google-perftools/wiki/GooglePerformanceTools

Example

Note: this is by no means complete documentation, but simply gives you an idea of what the API is like.

No recompilation is necessary to use these tools.

TC Malloc:

gcc [...] -ltcmalloc

Heap Checker:

gcc [...] -o myprogram -ltcmalloc
HEAPCHECK=normal ./myprogram

Heap Profiler:

gcc [...] -o myprogram -ltcmalloc
HEAPPROFILE=/tmp/netheap ./myprogram

Cpu Profiler:

gcc [...] -o myprogram -lprofiler
CPUPROFILE=/tmp/profile ./myprogram
by Nils Jonas Juselius last modified Nov 23, 2010 05:31 PM Notur