While doing some memory profiling work on muon recently, I revisited some old tracy integrations. After adding instrumentation for object allocations, I realized it would be trivial to instrument each meson builtin function call by wrapping the dispatch site in a few lines of tracy markup. The result is that you can now view a flamegraph of your meson.build scripts if you build muon with tracy support!
Why would you want such a flamegraph? Maybe you want to have the fastest muon setup build in the land. The correct answer though is: why not!
The project used in this example is the
postgresql meson port
.