on mac it’s super easy using instruments.app which comes with xcode… just pick “time profiler”, choose a running process at the top, hit record for a few seconds then fiddle with the viewing options at the bottom ⏱️ actually there’s even a basic version you can get from activity monitor by hitting “sample process” from the three dots menu on linux you can do `perf record -p
for windows i have no clue though, i’d love to know… i’m a clueless baby about windows development, you might have to install full visual studio