Show HN: profiler-md converts performance profiles to Markdown github.com · 2 po...

@show

Show HN: profiler-md converts performance profiles to Markdown github.com · 2 points · 0 comments · HN thread

TL;DR profiler-md is a CLI and JavaScript library by Tomer Aberbach that converts performance profiles into Markdown, supporting 17 formats, 29 profilers, 22 languages and four profile types (call stack profiles, call graphs, heap snapshots, traces). It was built so AI coding agents can read profiles and check whether an optimization removed the targeted work, and it also includes diffing between two profiles. The story is a Show HN post with 2 points and no comments.

  • Written to give AI agents a flamegraph-like feedback loop; the author says agents previously guessed from code, misread wall-time noise, and wrote subtly wrong one-off profile scripts.
  • Ships as a CLI (npm or Homebrew) and a typed JS API, with zero-config format and profiler auto-detection and a diff mode for two profiles or heap snapshots.
  • Output is Markdown with category breakdowns, a call tree, hottest functions by self and total time, and ranked regressions/improvements in diffs.
  • Matching functions across profile versions uses heuristics; the author reports 99.9% recall and 99.7% precision on diffs from real version upgrades.
  • The author reports a 78x speedup on a large pprof file and a 3.3x speedup more broadly, via pull requests to the DataDog pprof-format dependency.
  • The linked pages document inconsistent line-number semantics across profilers, such as rbspy reporting a method's end line and Bun using call-site rather than definition line numbers.

Links in the post

Discussion No comments have been posted yet, so the thread has no discussion to summarize. The story has 2 points and no visible reaction from the Hacker News audience.

#profiling #developerTools #markdown #llmAgents #cli #performance