Use Hotspot Analysis to identify the hottest Python functions and a mixed-mode call stack (both native and Python).
Identify the hottest function
Alongside native data timing metrics the Python profiler will enable hotspots
for the Python application. Identifying the hottest functions in Hotspot analysis is
mentioned in Hotspots Analysis.
Figure 1. Function Hotspots
Identify the hot code paths
Use Flame Graph to identify hottest code paths of an application, the code path contains
both native and Python functions.
Figure 2. Flame Graph
The code path identification of Hotspot Analysis can be found at Hotspots Analysis.