From 5890df364101d3250f4f5a2aeb5c9da9b4c95fb9 Mon Sep 17 00:00:00 2001 From: Emanuele Rocca Date: Tue, 26 Oct 2021 13:19:43 +0200 Subject: [PATCH] perf: add link and -p example (#7229) --- pages/linux/perf.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pages/linux/perf.md b/pages/linux/perf.md index 7f823b3fb..c9babf116 100644 --- a/pages/linux/perf.md +++ b/pages/linux/perf.md @@ -1,6 +1,7 @@ # perf > Framework for Linux performance counter measurements. +> More information: . - Display basic performance counter stats for a command: @@ -14,6 +15,10 @@ `sudo perf record {{command}}` +- Record the profile of an existing process into `perf.data`: + +`sudo perf record -p {{pid}}` + - Read `perf.data` (created by `perf record`) and display the profile: `sudo perf report`