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•9h 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

Show HN: Shoggoth Mini – A soft tentacle robot powered by GPT-4o and RL

https://www.matthieulc.com/posts/shoggoth-mini
18•cataPhil•52m ago•4 comments

Show HN: We made our own inference engine for Apple Silicon

https://github.com/trymirai/uzu
72•darkolorin•5h ago•23 comments

Show HN: I built this to talk Danish to my girlfriend – works with any language

https://menerdu.vercel.app/
112•lil_csom•2d ago•67 comments

Show HN: RooAGI's Roo-VectorDB: A New PostgreSQL Extension for Vector Search

https://github.com/RooAGI/Roo-VectorDB
2•rooagi•1h ago•0 comments

Show HN: Bedrock – An 8-bit computing system for running programs anywhere

https://benbridle.com/projects/bedrock.html
191•benbridle•4d ago•43 comments

Show HN: RAGsplain – What does your RAG model see before it answers?

https://www.ragsplain.com/
3•fredthedeve•2h ago•1 comments

Show HN: ProjectD – Google Drive-based, AES-encrypted C2 in C/C++

https://github.com/BernKing/ProjectD
2•bernking•3h ago•0 comments

Show HN: The HTML Maze – Escape an eerie labyrinth built with HTML pages

https://htmlmaze.com/
49•kyrylo•19h ago•14 comments

Show HN: Ten years of running every day, visualized

https://nodaysoff.run
904•friggeri•5d ago•464 comments

Show HN: ArchGW – An intelligent edge and service proxy for agents

https://github.com/katanemo/archgw/
109•honorable_coder•2d ago•15 comments

Show HN: Minesweeper game I built to be real-time Multiplayer

https://www.minesweeperpro.com/?v=2.1
14•bluelegacy•8h ago•4 comments

Show HN: Compare Speech APIs Live (OpenAI, Google, Deepgram, Soniox, etc.)

https://soniox.com/compare/
6•easwee•5h ago•1 comments

Show HN: Refine – A Local Alternative to Grammarly

https://refine.sh
392•runjuu•1d ago•198 comments

Show HN: FFmpeg in plain English – LLM-assisted FFmpeg in the browser

https://vidmix.app/ffmpeg-in-plain-english/
163•bjano•5d ago•46 comments

Show HN: Cogency – Cognitive Architecture for AI Agents

https://github.com/iteebz/cogency
11•cogencyai•3d ago•4 comments

Show HN: VS Code extension to edit the filesystem like a text buffer

https://github.com/ahrm/voil
57•hexomancer•2d ago•43 comments

Show HN: Notsc – A CLI to Scaffold Node.js and TypeScript API Projects

https://www.npmjs.com/package/notsc
2•cedricahenkorah•8h ago•0 comments

Show HN: A Raycast-compatible launcher for Linux

https://github.com/ByteAtATime/raycast-linux
188•ByteAtATime•1d ago•60 comments

Show HN: Weekday clock, a clock for people who dont work or go to school

https://weekdayclock.1link.fun
4•wenjian•9h ago•3 comments

Show HN: Create Frame Mockups Without Photoshop

https://framecanvas.app/
2•dizzierhys•9h ago•0 comments

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

https://github.com/jkool702/timep
2•jkool702•9h ago•0 comments

Show HN: StartupList EU – A public directory of European startups

https://www.startup-list.eu
9•umbertotancorre•20h ago•4 comments

Show HN: Learn LLMs LeetCode Style

https://github.com/Exorust/TorchLeet
173•Exorust•2d ago•21 comments

Show HN: LockIn – Track and visualize wasted time on iPhone

https://apps.apple.com/us/app/lockin-daily-track-time/id6743713321
3•SidDaigavane•12h ago•0 comments

Show HN: I built an LLM chat app because we shouldn't need 10 AI subscriptions

https://prismharmony.com/chat
56•maniknt28•2d ago•63 comments

Show HN: Local Lens – MCP that captures logs and network reqs for debugging

https://github.com/aotakeda/local-lens
3•arthurtakeda•16h ago•0 comments

Show HN: Phasers – emergent AI identity project using GPT-2 and memory shadows

https://github.com/oldwalls/phasers
3•oldwalls•16h ago•0 comments

Show HN: Vibe Kanban – Kanban board to manage your AI coding agents

https://github.com/BloopAI/vibe-kanban
191•louiskw•4d ago•130 comments

Show HN: I made a JSFiddle-style playground to test and share prompts fast

https://langfa.st/
49•eugenegusarov•2d ago•17 comments

Show HN: Self-hosted task management with 24-languages support

https://tududi.com
3•cvicpp123•17h ago•0 comments