samply is a sampling CPU profiler. Run a command, record a CPU profile of its execution, and open the profiler UI. Recording is currently supported on Linux and macOS. On other platforms, samply can only load existing profiles. EXAMPLES: # Default usage: samply record ./yourcommand yourargs # On Linux, you can also profile existing processes by pid: samply record -p 12345 # Linux only # Alternative usage: Save profile to file for later viewing, and then load it. samply record --save-only -o prof.json -- ./yourcommand yourargs samply load prof.json # Opens in the browser and supplies symbols # Import perf.data files from Linux perf: samply import perf.data Usage: samply Commands: record Record a profile and display it load Load a profile from a file and display it import Import a perf.data file and display the profile help Print this message or the help of the given subcommand(s) Options: -h, --help Print help -V, --version Print version