ddprof icon indicating copy to clipboard operation
ddprof copied to clipboard

Prototype - Python frames

Open r1viollet opened this issue 2 years ago • 1 comments

What does this PR do?

Prototype using libaustin to include information on python frames. This uses vm_reads so requires ptrace capabilities.

The method to lookup frames is really experimental:

  • We basically look for a register that makes sense

Limitations

The build parts are not sorted out yet

  • This does not build on musl (due to libaustin not building on alpine afaik)
  • The .a from libaustin is not propagated correctly. I manually built it and copied it on ubuntu 20 for agent investigations from the libaustin branch.

The synchronisation is not perfect. By the time we get the event, python may have done a lot of things (frames can get reused). This gives us messy frames (they do not aggregate well).

This takes some amount of CPU. We need to perform a lookup quite often.

Licensing

This is probably the most complex topici.

r1viollet avatar May 22 '23 08:05 r1viollet

Oh wow, just saw this--really cool 8)

sanchda avatar May 23 '23 13:05 sanchda