From 209fcdad91f4d18b87e19787a6c6919fc4c2c191 Mon Sep 17 00:00:00 2001 From: Muhammad Falak R Wani Date: Fri, 20 Oct 2017 23:14:29 +0530 Subject: [PATCH] perf: add page (#1556) --- pages/linux/perf.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 pages/linux/perf.md diff --git a/pages/linux/perf.md b/pages/linux/perf.md new file mode 100644 index 00000000000000..02b44e31ee158a --- /dev/null +++ b/pages/linux/perf.md @@ -0,0 +1,19 @@ +# perf + +> Framework for linux performance counter measurements. + +- Gather basic performance counter stats for a command: + +`perf stat {{command}}` + +- Display system-wide real time performance counter profile: + +`sudo perf top` + +- 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: + +`sudo perf report`