Hey all,

This was asked before, but I still cannot find any good documentation on the 
matter. How does one access the callgraph from a python script generated by 
perf script? The export-to-postgresql.py seems to indicate that this feature 
was added, but the code is too convoluted for me to grasp.

Looking at the code for trace-event-python.c I see that there is a 
common_callchain, but I don't get such code generate:

perf record --call-graph dwarf kwrite
perf script -g python

the result is: https://paste.kde.org/p0uazuubi

Note how the `while ((event = trace_find_next_event(pevent, event)))` loop has 
not triggered any output. The reason is that pevent is NULL - where is that 
supposed to be set when looking at builtin-script.c?

Can someone explain me what I'm doing wrong? Can someone reproduce the odd 
behavior above?
-- 
Milian Wolff | milian.wo...@kdab.com | Software Engineer
KDAB (Deutschland) GmbH&Co KG, a KDAB Group company
Tel: +49-30-521325470
KDAB - The Qt Experts

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to