From ede531f7d72ab2ad999c93631dd9834309814594 Mon Sep 17 00:00:00 2001 From: "Maarten A. Breddels" Date: Tue, 15 Dec 2020 14:58:14 +0100 Subject: [PATCH] docs: explain perf install/sudo foo --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index 81b622b..4e5d0a5 100644 --- a/README.md +++ b/README.md @@ -3,10 +3,27 @@ This project aims to (at least demonstrate) how to combine the Linux perf tool (aka perf_events) with [viztracer](https://github.com/gaogaotiantian/viztracer) to visualize the GIL (rather process states) and various profiling statistics, or hardware performance counters. # Installation +## Python side From PyPy $ pip install per4m + +## Linux side + +Install perf + + $ sudo yum install perf + +Enable users to run perf (use at own risk) + + $ sudo sysctl kernel.perf_event_paranoid=-1 + +Enable users to see schedule trace events: + + $ sudo mount -o remount,mode=755 /sys/kernel/debug + $ sudo mount -o remount,mode=755 /sys/kernel/debug/tracing + # Usage $ per4m giltracer -m per4m.example2