examples - matteocorti/dprofpp_grapher GitHub Wiki

Usage example

We first run our perl program enabling the profiler

perl -d:DProf update_vpp

(we have then renamed the produced tmon.out file to update_vpp.tmon.out to store it with a unique name in our repository)

We generate a graph for the update_vpp.tmon.out profiler data using a threshold of 5% (only subroutines where more than 5% of the time was cumulatively spent are shown).

./dprofpp_grapher           \
  --format png              \
  --in update_vpp.tmon.out  \
  --out update_vpp.tmon.png \
  --threshold 5             \
  --min-hue  0              \
  --max-hue 80              \   
  --verbose

produces

reading execution times
  509 subroutines processed
parsing execution statistics
  generated 28 nodes (threshold: 5%)
parsing call traces
  47069 calls analyzed
generating edges
  44 edges generated
Generating graph
Done

with the following PNG image:

Example

⚠️ **GitHub.com Fallback** ⚠️