0

I am trying to check perf profiling for python code..

I followed the official documentation. Updated my python3.10 to python3.12,

I was not able to get function names in the perf report

I tried running the way, documentation said

python -X perf script.py

perf report -g -i perf.data

As expected, didn't get any function names in perf report

Documentation also said to compile Python with CFLAGS of "-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer" to obtain best results - link

checked with the given code, python -m sysconfig | grep 'no-omit-frame-pointer' there was no output, that means the flag is not set,

How can I set the CFLAG and compile Python ?

arivappa
  • 1
  • 1

0 Answers0