frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

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

https://github.com/jkool702/timep
2•jkool702•7h ago
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 for you: one showing each individual command (with full subshell/function nesting chains), and one that combines repeated loops commands into a count + total runtime line with minimal "extra" metadata.

See the github README for more info on the available flags and output profile specifics.

timep works by cramming all the timing instrumentation logic into a DEBUG trap that roughly does the following:

1. record end timestamp for previous command 2. compare current state to state saved in variables last DEBUG trap to determine what sort of command is happening. e.g., if BASH_SUBSHELL increased then we know we just entered a subshell or background fork. 3. once we know what type of command is happening, generate a log line for the previous command (now that we have its end time 4. save current state in various variables (for use next debug trap) 5. record start time for the next command

then after the profiled code is done running, timep post-processes the logs to produce the final profile

Layout Maestro CSS Course

https://layoutmaestro.ishadeed.com/
1•pipase•2m ago•0 comments

Show HN: I made Instant Resume to make your resume in minutes

https://www.instantresume.online/
1•tanveerulhoque•3m ago•0 comments

Tiptap 3.0 is stable: open-source text editor built on ProseMirror

https://tiptap.dev/docs/resources/whats-new
3•philipisik•5m ago•1 comments

The Rushed Development of MiniDisc

https://obsoletesony.substack.com/p/inside-the-rushed-development-of
2•coloneltcb•6m ago•0 comments

ABCD Study omits gender-identity data from latest release

https://www.thetransmitter.org/gender/abcd-study-omits-gender-identity-data-from-latest-release/
1•lentoutcry•8m ago•0 comments

Thousands offered UK asylum in secret scheme after personal data of Afghans

https://www.theguardian.com/politics/live/2025/jul/15/starmer-reeves-farage-trump-tax-welfare-uk-politics-live-news-updates
1•chrisjj•8m ago•0 comments

Dark Matter-Powered Objects Awaiting Discovery at the Galactic Center

https://arxiv.org/abs/2408.00822
1•PaulHoule•8m ago•0 comments

Elon Musk's AI predictions should terrify us

https://www.damianreilly.co.uk/p/elon-musks-ai-predictions-should
3•myrtlehinch•8m ago•0 comments

A New Record in Self-Cleaning Turing Machines

https://nickdrozd.github.io/2021/07/11/self-cleaning-turing-machine.html
1•Fibra•8m ago•0 comments

Show HN: Fertit – Open-Source Newsletter Manager with Optional Hosted Service

https://www.fertit.com
1•asdxrfx•9m ago•0 comments

Harnessing Frustration: Using LLMs to Overcome Activation Energy

https://lalitm.com/llm-motivation-via-emotions/
1•lalitmaganti•9m ago•1 comments

Milk-V Titan Brings RISC-V Performance in Mini-ITX Form with UltraRISC Ur-DP1000

https://linuxgizmos.com/milk-v-titan-brings-risc-v-performance-in-mini-itx-form-with-ultrarisc-ur-dp1000/
1•fizzlk•9m ago•0 comments

Record Labels: A "Safe Haven for Pirates" Disqualifies ISP from DMCA Protection

https://torrentfreak.com/record-labels-a-safe-haven-for-pirates-disqualifies-isp-from-dmca-protection/
1•DocFeind•10m ago•0 comments

OpenZFS Bug Ported to C

https://flak.tedunangst.com/post/OpenZFS-Bug-Ported-to-C
2•zdw•10m ago•0 comments

Commodore 64 Is Back–and More Gamer-Fueled Than Ever with a Transparent RGB Case

https://gizmodo.com/the-commodore-64-is-back-and-more-gamer-fueled-than-ever-with-a-transparent-rgb-case-2000629113
1•DocFeind•10m ago•0 comments

Incel language infected the mainstream internet

https://www.theverge.com/internet-culture/697406/algospeak-adam-aleksic-excerpt
3•cainxinth•10m ago•1 comments

Why Women Face Higher Alzheimer's Risk

https://neurosciencenews.com/women-alzheimers-neurology-29451/
1•lentoutcry•11m ago•0 comments

Fixing the R&D Tax Code Blunder Isn't a Victory, It's a Reset

https://news.bloombergtax.com/tax-insights-and-commentary/fixing-the-r-d-tax-code-blunder-isnt-a-victory-its-a-reset
1•tldrthelaw•12m ago•0 comments

Animal revenge: Can tigers, orcas, and other animals get back at their enemies?

https://slate.com/life/2025/07/animals-tigers-emotion-behavior-whales-orcas-ducks-revenge.html
2•DocFeind•12m ago•0 comments

More Artificial than Intelligent, and it is only getting worse

https://mlagerberg.com/much-a-little-i-and-it-is-not-getting-better/
1•rom16384•13m ago•0 comments

Misleading macOS “App is Damaged” Warning

https://github.com/milisp/misleading-macos-damaged-warning
2•milisp•16m ago•2 comments

Chip4Mac68000 – A Chip8 emulator for the original Macintosh

https://github.com/KenDesigns/Chip4Mac68000
1•zdw•17m ago•1 comments

Show HN: BYOK Node Based Image Gen Playground with OAI, Flux, Geminin

https://www.hitslop.com
1•Jonovono•18m ago•0 comments

Parsing 1B Rows in Bun/TypeScript Under 10 Seconds

https://www.taekim.dev/writing/parsing-1b-rows-in-bun
2•damethos•19m ago•0 comments

Show HN: Zzz – IDE for Kotlin mobile development on Windows

https://s0mbra.com
1•manuelcabanzo•21m ago•0 comments

Grok Rolls Out Pornographic Anime Companion, Lands Dept of Defense Contract

https://www.rollingstone.com/culture/culture-news/grok-pornographic-anime-companion-department-of-defense-1235385034/
2•zzzeek•22m ago•0 comments

Why was electricity slow to change manufacturing?

https://www.bbc.co.uk/news/business-40673694
3•highfrequency•22m ago•0 comments

CIOs pause net-new IT investments as global tariff jitters bite

https://www.theregister.com/2025/07/15/gartner_it_spending_forecast/
1•rntn•22m ago•0 comments

Ask HN: Do you still build terminal tools for fun?

3•FerkiHN•23m ago•6 comments

Astronauts splashdown on SpaceX capsule to end private Ax-4 mission

https://www.npr.org/2025/07/15/nx-s1-5467739/axiom-space-ax-4-spacex-iss-nasa-splashdown
1•andsoitis•23m ago•0 comments