From 84bcef29a17d817f7a4f14cbd3ee1447ff702a8f Mon Sep 17 00:00:00 2001 From: Muhammad Falak R Wani Date: Sat, 21 Oct 2017 16:07:00 +0530 Subject: [PATCH] perf: resolve review comments --- pages/linux/perf.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/linux/perf.md b/pages/linux/perf.md index 02b44e31e..7a4ef194c 100644 --- a/pages/linux/perf.md +++ b/pages/linux/perf.md @@ -2,18 +2,18 @@ > Framework for linux performance counter measurements. -- Gather basic performance counter stats for a command: +- Display basic performance counter stats for a command `gcc -c -O3 hello.c`: -`perf stat {{command}}` +`perf stat {{gcc -c -O3 hello.c}}` - Display system-wide real time performance counter profile: `sudo perf top` -- Run a command and record its profile into perf.data: +- Run a command and record its profile into "perf.data": `sudo perf record {{command}}` -- Read perf.data (created by perf record) and display the profile: +- Read "perf.data" (created by `perf record`) and display the profile: `sudo perf report`