/CPPFlameGraph

Example flamegraph using a C++ program

Primary LanguageC++

C++ Flame graph

Extract and PoC for https://github.com/iTrooz/AndroidPattern

This repository shows how to make a flame graph out of a C++ program

How to use

Compile program

  • make

Install stackcollapse commands

https://github.com/brendangregg/FlameGraph

Benchmark and generate using Perf

perf record -F max --call-graph dwarf,64000 -g -- ./attempt7_iter_cpp

perf script | stackcollapse-perf.pl | flamegraph.pl > test.svg

Benchmark and generate using WallClockProfiler (wcp)

wcp repository: https://github.com/jasonrohrer/wallClockProfiler

wallClockProfiler 500 ./attempt7_iter_cpp > out.txt

stackcollapse-wcp.pl out.txt | flamegraph.pl > wcp_500.svg