Skip to content

iTrooz/CPPFlameGraph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Example flamegraph using a C++ program

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published