You need to turn on the plugin called 'Diagrams' in more recent versions of Intellij Idea.
Source:
https://youtrack.jetbrains.com/issue/PY-19438/No-profiler-button-for-intellij-with-python-plugin-if-UML-is-disabled#focus=Comments-27-10652677.0-0