Running profiling tool without Python #4780
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! 🚀 |
Beta Was this translation helpful? Give feedback.
-
Hello. You can get the C version of Profile from this PR. This is a converted version of the BCC Python profile. |
Beta Was this translation helpful? Give feedback.
-
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.
Beta Was this translation helpful? Give feedback.
All reactions