Readit News logoReadit News
fsyscall commented on Trace your Python process line by line with minimal overhead   github.com/furkanonder/be... · Posted by u/fywvzqhvnn
gkbrk · 3 years ago
Any advantages/disadvantages compared to py-spy [1]?

[1]: https://github.com/benfred/py-spy

fsyscall · 3 years ago
Advantanges - You cannot trace a Python process line by line in py-spy. Because py-spy does not attach the line's probe. By the way, py-spy is a profiler, beetrace is a tracer. - You can see the call/return hierarchy of a Python process because beetrace attaches function entry and function return probes.

Disadvantages - To trace the process, Python must be configured with the --with-dtrace option. Otherwise, you won't be able to trace it.

u/fsyscall

KarmaCake day27March 9, 2022View Original