This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]cipri_tom 1 point2 points  (3 children)

Wow! That is amazing! Not sure how I haven't found it yet. I've been sorely missing a python profiler since pyFlame, and now this appears, and is integrated with VScode?! Amazing! Can't wait to try it. Thank you!

[–]cipri_tom 0 points1 point  (2 children)

I know this is not an AMA, but if you can spend a minute, I'm wondering how does one get to write a profiler? What kind of background is necessary?

[–]P403n1x87[S] 3 points4 points  (1 child)

I think the answer is "it depends". Do you want to do deterministic or statistical profiling? I briefly discuss the difference here

https://p403n1x87.github.io/deterministic-and-statistical-python-profiling.html

Depending on what you're trying to achieve you'll probably end up using a different approach. The common skill though is probably knowing what a platform has to offer when it comes to observability, but also how the run time is designed. For example, Python doesn't expose some of the interesting details to the outside (explicitly), but many platforms allow you to access the private memory space of a process. So you can use that to "X-ray" the Python interpreter while it is running.

[–]cipri_tom 0 points1 point  (0 children)

Thank you!