Drag to pan · wheel over the ruler to zoom · click a thread · right-click a scope · Home to fitOpen 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.
Your scope says which frame was slow. The hook says which call. The samples say what that call was doing. A drawing; the capture above is the real thing.
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.
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.
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.
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.
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.
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.
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.
perfr.dev/your-handle/capture-name
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.
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.