IssueRaiser
All solutions

Show HN: Timep – a next-gen profiler and flamegraph-generator for bash code

timep is a TIME Profiler for bash code that will give you an accurate per-command execution time breakdown of any bash script or function. Unlike other profilers, timep also recovers and hierarchally records metadata on subshell and function nesting, allowing it to recreate the full call-stack tree for the bash code being profiled. If you call timep with the `--flame` flag, it will automatically generate a flamegraph .svg image where each block represents the wall-clock time spent on a particular command (top level) or its parent subshells/functions (all the other levels). Using timep is simple - just source the timep.bash file then add timep before whatever you want to profile. You do not need to change in the code being profiled - timep handles everything for you. Example usage: . ./timep.bash timep someFunc timep -flame someScript <inputFile timep will generate 2 profiles

Why it failed

timep is a TIME Profiler for bash code that will give you an accurate per-command execution time breakdown of any bash script or function. Unlike other profilers, timep also recovers and hierarchally records metadata on subshell and function nesting, allowing it to recreate the f

Kind
patent
Status
Rejected
Inventor
jkool702
Ended
2025
Source
hackernews
View original source