← All projects
Project record2 mentions
Originally shared on Hacker News

profiler-md

A CLI and JS library that converts performance profiles to Markdown, supporting 17 formats (e.g. pprof), 29 profilers (e.g. py-spy), 22 languages (e.g. Rust), and 4 profile types (call stack profiles, call graphs, heap snapshots, and traces).

Last shared
01 / The problem

What it addresses

AI agents weren't effective at performance optimization: they speculated about slowness from reading code, struggled to distinguish real improvements from noise, and mis-analyzed raw profiles with one-off scripts; they needed a flamegraph-like feedback loop, which profiler-md provides as readable Markdown.

02 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. profiler-md

    A CLI and JS library that converts performance profiles to Markdown, supporting 17 formats (e.g. pprof), 29 profilers (e.g. py-spy), 22 languages (e.g. Rust), and 4 profile types (call stack profiles, call graphs, heap snapshots, and traces).

    Problem: AI agents weren't effective at performance optimization: they speculated about slowness from reading code, struggled to distinguish real improvements from noise, and mis-analyzed raw profiles with one-off scripts; they needed a flamegraph-like feedback loop, which profiler-md provides as readable Markdown.

    Posted by @tomeraberbach · Original source ↗

    Story title · @tomeraberbach · · Source ↗

    Show HN: profiler-md converts performance profiles to Markdown

    Submitted URL · @tomeraberbach · · Source ↗

    https://github.com/TomerAberbach/profiler-md

    Source text · @tomeraberbach · · Source ↗

    profiler-md is a CLI and JS library that converts performance profiles to Markdown across 17 formats (e.g. pprof), 29 profilers (e.g. py-spy), 22 languages (e.g. Rust), and 4 profile types (call stack profiles, call graphs, heap snapshots, and traces).

    Source text · @tomeraberbach · · Source ↗

    Earlier this year I tried using AI agents for performance optimization. They weren't very effective because they frequently: - Speculated about why something was slow from just reading the code - Made changes, measured the wall time before vs after, and struggled to distinguish real improvements from noise - Analyzed raw profiles using one-off scripts, which were often subtly incorrect

    Source text · @tomeraberbach · · Source ↗

    The issue was that the agents couldn't read a flamegraph like I could. In a flamegraph, I could see what was slow, and when I made changes, I could see whether the targeted work was eliminated. The agents needed a feedback loop like that.

    Source text · @tomeraberbach · · Source ↗

    I also wrote an agent skill [1], which I've successfully used to optimize profiler-md itself
  2. profiler-md

    A CLI that converts performance profiles into Markdown that is friendly for both humans and LLMs. It is gaining a diffing feature to compare before vs after profiles and ships with a skill that lets a coding agent profile and optimize code.

    Posted by @tomeraberbach · Original source ↗

    Source text · @tomeraberbach · · Source ↗

    I've been working on a CLI that converts performance profiles to human and LLM friendly Markdown: https://github.com/TomerAberbach/profiler-md Currently working on a diffing feature to compare before vs after profiles. It also comes with a skill to have a coding agent profile and optimize your code!