Set max depth of profiler / limit it to source code?

Hello, I would like to use the Pycharm profiler to view the logical flow of my application. The program is a card game made with pygame. I would find the logical flow by debugging/breakpoints but the GUI execution and the nature of pygame make it difficult to parse the code. The problem with the Pycharm profiler is that it is massive and most of it is not my code, but imported libraries. I'd appreciate any help or workarounds. I've already been using pycallgraph2 in the meantime. 

3 comments
Comment actions Permalink

Hi,

Profiler is not designed to make a logical flow, it's purpose is to help you find bottlenecks and optimize your program. There's no scope settings for it.

Perhaps you're looking for UML diagram instead? https://www.jetbrains.com/help/pycharm/viewing-diagram.html#48b7e7ff

1
Comment actions Permalink

https://intellij-support.jetbrains.com/hc/en-us/community/posts/360004914979/comments/360000724459

( sorry I'm not sure how to properly reply on the forms ) 

But yes, the UML diagram is sort of what I'm looking for, however, i'd like for it to show the dependencies between class methods, similar to what the java class diagram on IntelliJ does. Ideally, it would also show stand-alone functions, which is why I figured i'd use a call graph to visualize it instead. 

0
Comment actions Permalink

Unfortunately there's no scope settings, but feel free to submit a feature request: https://youtrack.jetbrains.com/issues/PY

0

Please sign in to leave a comment.