timep is an efficient and accurate state-of-the-art trap-based profiler and flamegraph generator for bash code. It maps the full call-stack tree for the bash code being profiled, and (optionally) uses that call-stack tree to generate a FlameGraph of the profiled bash commands!