Record, visualize, and speed up your project's compilation, no matter the language or build system.

Profiling a build near you
Profile any build system and any language without changing the build config, thanks to OS-level process capture.
Survey every process in your build on the timeline, with child processes neatly nested inside their parent.

Evaluate if slow dependencies are worth keeping
Refactor large or template-heavy files
Identify a slow linker or JavaScript bundler to swap out.
Catch files that get compiled more than once.
Spot commands that could've run in parallel.
See what needlessly recompiles after a one-line change.

See each process's full command, working directory, total runtime, and more.

Enjoy a buttery smooth experience even when viewing more than 100,000 processes.
Record a build in CI and view the profile on your local machine.
Find problems early in the build without waiting for the whole build to finish.
Explore in-depth timing information for rustc, clang, and swiftc, so you can see which files, templates, and compiler passes take the most time.
| Section | Time (s) | Percent |
|---|---|---|
| Machine code generation | 1.045 | 31.3% |
| LLVM passes | 0.622 | 18.6% |
| Type checking | 0.382 | 11.4% |
| Linking | 0.256 | 7.7% |
| Macro expansion | 0.194 | 5.8% |
| Borrow checking | 0.189 | 5.7% |
| Monomorphization | 0.150 | 4.5% |
| Crate metadata generation | 0.128 | 3.8% |
| LLVM IR generation | 0.084 | 2.5% |
| MIR safety/effect checks | 0.048 | 1.4% |
| Lints and other validation | 0.040 | 1.2% |
| Parsing | 0.029 | 0.9% |
| LLVM optimization | 0.023 | 0.7% |
| Name resolution | 0.009 | 0.3% |
| Other work | 0.004 | 0.1% |
| Query | Time (s) | Count |
|---|---|---|
| regex_syntax::unicode_tables::case_folding_simple::CASE_FOLDING_SIMPLE | 0.235 | 48 |
| regex_syntax::unicode_tables::property_bool::BY_NAME | 0.227 | 48 |
| regex_syntax::hir::print::{{impl}}[3]::visit_pre | 0.152 | 51 |
| regex_syntax::ast | 0.123 | 25 |
| regex_syntax::hir | 0.083 | 25 |
| regex_syntax::unicode_tables::general_category::BY_NAME | 0.079 | 48 |
| regex_syntax::unicode_tables::script::BY_NAME | 0.068 | 48 |
| regex_syntax::unicode_tables::script_extension::BY_NAME | 0.065 | 48 |
| regex_syntax::unicode::ages::imp::AGES | 0.057 | 48 |
| regex_syntax::unicode_tables::property_values::PROPERTY_VALUES | 0.046 | 48 |
| regex_syntax::unicode_tables::sentence_break::BY_NAME | 0.039 | 48 |
| regex_syntax::unicode_tables::case_folding_simple | 0.037 | 24 |
| regex_syntax::error::{{impl}}[6]::fmt | 0.036 | 51 |
| regex_syntax::hir::literal::{{impl}}[7]::keep_first_bytes | 0.036 | 47 |
Commands and their arguments get summarized in the timeline.
~/.mozbuild/clang/bin/clang++ -c -MD -MP -fPIC -Wall -Wcomma -pthread -Wformat -DDEBUG=1 -fno-rtti -gdwarf-4 -Wno-psabi -Wempty-body -Wtype-limits -stdlib=libc++ -Wsign-compare -Werror=format -DEXPORT_JS_API -fno-math-errno -fno-exceptions -funwind-tables -Wpointer-arith -Wclass-varargs -Wloop-analysis -Wthread-safety -DMOZILLA_CLIENT -fno-aligned-new -DJS_CACHEIR_SPEW -DMOZ_HAS_MOZGLUE -Wempty-init-stmt -Wformat-security -ffp-contract=off -Wunreachable-code -fvisibility=hidden -Wstring-conversion -fcolor-diagnostics -DJS_STRUCTURED_SPEW -Wignored-qualifiers -fno-strict-aliasing -Wno-invalid-offsetof -fstrict-flex-arrays=1 -Wimplicit-fallthrough -Wduplicate-method-arg -Wno-inline-new-delete -Wno-vla-cxx-extension -fno-sized-deallocation -fno-omit-frame-pointer -Wformat-type-confusion -Wfloat-zero-conversion -Wenum-float-conversion -Wobjc-signed-char-bool -Wno-error=array-bounds -fstack-protector-strong -Wno-range-loop-analysis -Wduplicate-method-match -Wunreachable-code-return -mmacosx-version-min=10.15 -DMOZ_SUPPORT_LEAKCHECKING -Wbitfield-enum-conversion -Wunused-but-set-parameter -Wenum-compare-conditional -MF .deps/StoreBuffer.o.pp -fvisibility-inlines-hidden -DWASM_SUPPORTS_HUGE_MEMORY -Wfloat-overflow-conversion -Wno-error=atomic-alignment -Wno-unknown-warning-option -Wno-deprecated-this-capture -Wmissing-method-return-type -Wsuper-class-method-mismatch -Wsemicolon-before-method-body -Wno-error=free-nonheap-object -Wno-error=deprecated-builtins -ftrivial-auto-var-init=pattern -Wno-error=deprecated-declarations -Werror=unguarded-availability-new -Wno-error=builtin-macro-redefined -isysroot ~/.mozbuild/MacOSX15.5.sdk -Wno-deprecated-enum-enum-conversion -I~/Developer/3rdParty/firefox/js/src/gc -Wshadow-field-in-constructor-modified -I~/Developer/3rdParty/firefox/obj-aarch64-apple-darwin24.6.0/js/src/gc -Wtautological-constant-in-range-compare -Wno-deprecated-anon-enum-enum-conversion -Wno-error=tautological-type-limit-compare -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_DEBUG ~/Developer/3rdParty/firefox/js/src/gc/StoreBuffer.cpp -I~/Developer/3rdParty/firefox/obj-aarch64-apple-darwin24.6.0/js/src -I~/Developer/3rdParty/firefox/js/src -I~/Developer/3rdParty/firefox/obj-aarch64-apple-darwin24.6.0/dist/include -include ~/Developer/3rdParty/firefox/obj-aarch64-apple-darwin24.6.0/js/src/js-confdefs.h -o StoreBuffer.oTurns this
Into this
“Rebuild time was reduced from an excruciating 35 sec to... 3.3 sec!”
“We managed to shave a minute off of an 8 minute build. We will definitely be using this more.”
“Super interesting, novel, and useful — lets me dive directly into performance issues.”
-ftime-trace or cargo --timings?They're great for looking inside a single tool, but each one only sees its own part of the build and requires modifying the project build system and extra tooling to visualize the results.
After downloading and starting What The Fork, all you have to do is click record and then start your build. No changes to your project or build system are necessary.
No, we record process start and end events from the OS, which are infrequent and low overhead. With in-depth compiler profiling turned on, compiler processes (like swiftc, rustc, and clang) can run between 1% and 5% slower depending on how efficient their self-profiling feature is. Other processes are not affected.
At least macOS 13.5, Windows 10, or Linux kernel 5.8.
cap_bpf and cap_perfmon capabilities.What The Fork runs entirely locally, and your data never leaves your machine. We do not collect telemetry. It occasionally checks that the license is valid and if there are updates available.
Try profiling your build now, it's easy.
Download