The profiler for agents and humans.

Find it, fix it, share it. Any running program, no code changes.

curl -fsSL https://perfr.dev/install.sh | sh

The service runs on Linux, macOS and Windows. The viewer runs in any browser.

Latest release: v0.1.11

The evolution of Orbit, from its original author.

Drag to pan · wheel over the ruler to zoom · click a thread · right-click a scope · Home to fit Open it on its own

Why perfr

Three ways to measure. One timeline.

Most profilers make you choose between sampling and instrumentation. perfr records both, and the scopes you add yourself, into one capture on one clock.

Sampling

See where the time goes

Call stacks, a thousand times a second, with nothing to set up. The flame graph and the call trees show the hot path. The scheduler track shows which thread held each core, and what the others were waiting for.

Linux and Windows

Dynamic instrumentation

Time any function, call by call

Pick a function in a program that is already running and perfr hooks it in memory: every call, how long it took, and where it sits in the frame. No rebuild and no restart. On Linux, auto-profiling picks the functions worth hooking for you.

Linux, macOS and Windows

Manual instrumentation

Mark what only you know

A frame, a request, a training step: name it in one line and it is a scope on the timeline, with your values, logs and frame times beside it. One header for C and C++, and bindings for Rust, Python, Go and seven more languages.

Linux, macOS and Windows

See what each system records

Follows the whole program

Real programs are several languages, several processes and sometimes several machines. One capture holds all of it.

Multi-language

Python and native in one stack

A sample of a Python program reads worker_loop (app.py:39), then the C extension it called, then libc. Nothing is installed in the program, and the GIL has a row of its own that shows which thread held it.

Python programs

Multi-process

Everything the target launches

The workers a program forks, the server a script starts, the game behind a launcher: each one is sampled within milliseconds of starting, under its own name. Or tick several running processes and record them together.

Several processes

Multi-machine

Every machine on one clock

Start perfr --join on each machine and its processes, threads and cores join one viewer, with the clocks aligned over the link. One Record starts them all, and one file holds the result.

Several machines

GPU

What the GPU ran, and who asked

In a CUDA program every kernel and copy is a span on the timeline, under the thread that launched it. See how far the GPU runs behind a PyTorch training loop, with nothing changed in the script.

What the GPU was doing

Also in a capture: what the program prints, thread states, frame times, disassembly with source, and Chrome and Perfetto traces. All the features

Agent first

The agent that writes the fix can measure it

perfr comes with an MCP server. Claude Code, Cursor or any other MCP client drives the whole loop: find the process, attach, hook functions, record, and read the results back.

  • Numbers, not pictures. The hottest functions and stacks, and count, total, average, min and max for every hooked function, a page at a time.
  • It measures and nothing else. The tools do not edit source, rebuild, kill a process or delete files.
  • You can look too. The capture stays in perfr, so the viewer shows you what the agent recorded.

.mcp.json for Claude Code, .cursor/mcp.json for Cursor

{
  "mcpServers": {
    "perfr": {
      "command": "perfr",
      "args": ["mcp", "--url",
               "http://127.0.0.1:44766"]
    }
  }
}
  • perfr_attach
  • perfr_search_functions
  • perfr_arm_hooks
  • perfr_start_capture
  • perfr_sampling_report
  • perfr_callstacks
  • perfr_function_stats
  • perfr_logs

A place for captures

A capture is a link

Put a capture on perfr.dev and anyone with the link opens the whole timeline in a browser. A capture they can zoom, select and search, not a screenshot of one.

One click, or one command

Share from the viewer, or run perfr share in a terminal or a CI job and get the link back.

Nothing to install to view

The link opens the same viewer, on a desktop or a phone. Whoever you send it to needs no perfr and no account.

Under your name

Your captures live at your handle, in folders if you want them. List one on your public page, or leave it to those who have the link.

How sharing works

Open source, from the author of Orbit

perfr is the evolution of Orbit, rewritten in Rust by its original author and released under the BSD licence. The service runs on Linux, macOS and Windows, and the viewer in any browser.

Install perfr Quick start GitHub

We'll only email about Perfr releases. No spam.