trace: Support output of a flamegraph