Running profiling tool without Python #4780
Unanswered
havefuncoding1
asked this question in
Q&A
Replies: 2 comments 1 reply
|
Hello my bro. I understand your situation. If your environment does not allow installing Python packages, considering using a native C/C++ profiler is a good idea. The "profile.bpf.c" file you found seems to be a promising option. You must compile and run that C code to get CPU usage information. Make sure you understand how it works and adapt it to your needs. It may be an effective solution for your case. Good luck! 🚀 |
1 reply
|
Hello. You can get the C version of Profile from this PR. This is a converted version of the BCC Python profile. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi, I am trying to profile CPU usage. This document covers how to use the tool, and I believe this tool is actually Python script here. Trouble is my environment is quite strict and I can't install Python package. Is there a native C/C++ version of the profiler available? Not sure if I am on the right track, but I did find a profile.bpf.c here. Is this something I need to leverage? Thanks in advance for your help.
All reactions