From 60ef05ae2d6d6fc4d6778f0aa870f52f2c019ef3 Mon Sep 17 00:00:00 2001 From: Rafael Menezes <38216046+r-menezes@users.noreply.github.com> Date: Tue, 26 May 2026 02:38:25 -0300 Subject: [PATCH] samply: add page (#22383) Co-authored-by: Harshavardhan --- pages/common/samply.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pages/common/samply.md diff --git a/pages/common/samply.md b/pages/common/samply.md new file mode 100644 index 0000000000..9e206b1f5a --- /dev/null +++ b/pages/common/samply.md @@ -0,0 +1,20 @@ +# samply + +> Sample and record CPU profiles for analysis. +> More information: . + +- Record a profile of a command and open it in the browser: + +`samply record {{path/to/command arg1 arg2 ...}}` + +- Adjust sampling rate: + +`samply record --rate {{rate_in_hz}} {{path/to/command arg1 arg2 ...}}` + +- Record a profile to a file without opening the browser: + +`samply record --save-only --output {{path/to/profile.json}} -- {{path/to/command arg1 arg2 ...}}` + +- Load a previously saved profile in the browser: + +`samply load {{path/to/profile.json}}`