modify perf_event_paranoid in codespaces to enable CPU profiling #138915
Unanswered
sk337
asked this question in
Codespaces
Replies: 1 comment 1 reply
-
Yes, you can modify the /proc/sys/kernel/perf_event_paranoid value to 1 to enable CPU profiling. This setting allows non-root users to access performance events data, which is useful for profiling applications. To change this value temporarily, you can use the following command:
For a permanent change, you can add the following line to your /etc/sysctl.conf file:
Then, apply the changes with:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Select Topic Area
Question
Body
would it be possible to modify the /proc/sys/kernel/perf_event_paranoid to 1 to enable CPU profiling
Beta Was this translation helpful? Give feedback.
All reactions