#!/bin/bash find . -name '*.txt' -exec cat {} \; | ./stackcollapse-jstack.pl > stacks-folded.txt ./flamegraph.pl stacks-folded.txt > flame.svg