Skip to content
This repository has been archived by the owner on Aug 20, 2024. It is now read-only.

Profiling FIRRTL

Adam Izraelevitz edited this page Oct 29, 2018 · 6 revisions

The best way I've found to profile FIRRTL is by using FlameGraphs! The following is what works for me on an MacOSX Laptop.

Required installation:

Then run:

> ./utils/bin/firrtl-profiling -i <testcase>.fir -o dump.v //Creates output.hprof
> stackcollapse-hprof output.hprof > output-folded.txt
> flamegraph.pl output-folded.txt > output.svg

You can then use your browser (e.g. Chrome) to view output.svg

You get pretty graphs like this: