PyCharm 4.5 EAP build 141.988: Introducing Python Profiler

Today we’re glad to let you know that the third PyCharm 4.5 EAP build 141.988 is ready for your evaluation. Please download it from our EAP page.

Just as always, this EAP build can be used for 30 days after its release date and it doesn’t require any license.

Comparing to the previous EAP builds, this one mostly includes a consolidation of fixes for various bugs and problems, and improvements for recently added features. Among them are various IPython Notebook integration fixes and fixes for the python formatter. For the detailed list of notable changes and improvements, please check the Release Notes.

The most notable brand-new feature in this build is the Python Profiler Integration which is available right away from the toolbar or Run | Profile…:

profiler

This special profiler configuration starts your application with your current run/debug configuration and attaches the python profiler to it. If you have a yappi profiler installed on your interpreter, it starts with it by default, otherwise it uses the standard cProfile profiler as shown on the screenshot above.
By clicking the Capture Snapshot icon on the profiler console you can get the detailed statistics on functions within your code and view the call graph as well as navigate to the function definition:

profiler2profiler3

Another notable new feature in this build is “Step into my code” which is available from the debugger:

stepinto

This feature helps you avoid stepping through library sources and lets you stay focused on your own code.

Please take PyCharm 4.5 EAP build 141.988 for a spin! We hope that there will be no major issues, however, should you encounter any problems, please report them to our public tracker.

You can download the build or use the patch-based upgrade to upgrade from within the IDE (from previous PyCharm 4.5 EAP builds only) without a full re-installation. Just make sure you’ve selected the EAP channel in update settings.

Stay tuned for PyCharm 4.5 release announcements, follow us on twitter, and develop with pleasure!

-PyCharm team

About Dmitry Filippov

Product Marketing Manager at JetBrains
This entry was posted in Early Access Preview. Bookmark the permalink.

20 Responses to PyCharm 4.5 EAP build 141.988: Introducing Python Profiler

  1. Marcus says:

    Hi! Why is the code analysis so slow in all 4.5 EAP realeases? (more specifically, the inspections)

  2. Pingback: 1p – PyCharm 4.5 Introducing Python Profiler | Profit Goals

  3. Pingback: 1 – PyCharm 4.5 Introducing Python Profiler | blog.offeryour.com

  4. Yury V. Zaytsev says:

    Hi Dmitry, this is mind blowing! Are you working on a square map view in addition to the call graph? If not, is it worth opening a Youtrack ticket for that? I often find square maps much easier to grok than the color coded call graphs. Thanks!

  5. Siavash says:

    Great new features,
    However I tried to profile a program using remote debugger and it failed with this error:

    ClassCastException: com.jetbrains.python.debugger.remote.PyRemoteDebugCommandLineState cannot be cast to com.jetbrains.python.run.PythonCommandLineState

  6. Pingback: Announcing the PyCharm 4.5 Release Candidate | JetBrains PyCharm Blog

  7. Nik Molnar says:

    Yes, this is awesome! Thanks for adding profiler support!

  8. Hi Dmitri.

    I have PyCharm 4.5.1 but i cannot see the Python Profiler Integration under Run menu. I installed yappi and still cannot find the profiler. This page is titled EAP, which I thought is no more valid as 4.5 is already released.

    Please help.

    • Dmitry Filippov says:

      Hi Hesham,

      which PyCharm edition are you using? Python profiler is available only in PyCharm Professional Edition. It should be available under Run | Profile

  9. Nice feature. Profiling is important.

    Here is an idea how to even improve it: https://youtrack.jetbrains.com/issue/PY-16191

    {{{
    Please highlight “my code” vs “library/framework” code in the stat table of the profiling output.

    Most of the time I am interested in: “Where is **my** slowest line?”
    }}}

  10. Dmitry, the link you provided takes me to version 141.1899 (Pro and CE). I already have the CE installed. Unfortunately, I do not see the integrated profiler button or Run|Profiler menu option. Is this some other version of PyCharm or do I need to explicitly enable this feature in the IDE?

    It’d be great to work with visual profiler you have posted earlier. Please assist, if you can.
    Cheers.

    • a h says:

      Dmitry Filippov says:
      May 31, 2015 at 2:58 pm
      Hi Hesham,

      which PyCharm edition are you using? Python profiler is available only in PyCharm Professional Edition. It should be available under Run | Profile

  11. Carl says:

    Is the profiler available in IntelliJ with the Python plugin?

  12. Hanan Shteingart says:

    How about memory profiling?
    How can I tell what peaks my memory in the app?

Leave a Reply

Your email address will not be published. Required fields are marked *