

In this dialog, you can modify the existing rules and add new ones.Ĭonfigure the packages or specific classes that you want to be able to hide in the output. In the Settings/Preferences dialog ( Ctrl+Alt+S), select Build, Execution, Deployment | Java Profiler | Filters. To quickly disable filtering, click and deselect the Filter Calls option. The blue arrow hyperlink right after the percentage presents a filtered sequence of calls. For example, you can hide library classes or the classes that come from specific frameworks to be able to focus on the application itself. The Call Tree tab allows you to collapse the frames you are not interested in at the moment by applying filters. To toggle the percentage to the parent's call view, click and select Show Percent of Parent. Percentage of total sample time or parent's sample time There's also a top-down call tree for each thread.įor each method, the tab shows the following information: The top-level All threads merged option shows all threads merged together into a single tree. The Call Tree tab represents information about a program’s call stacks that were sampled during profiling. The red color means that the corresponding method became slower. If you see that some part of the frame is green, it means that the corresponding method became faster during this profiler run. To open snapshots, you can run the profiler twice or go to Run | Open Profiler Snapshot and select snapshots here.Ĭlick the Compare With Baseline button and select the snapshot that you want to compare against.Ī separate diff tab will open with the results of the comparison, combining two flame graphs and showing the differences as red and green. You can visualize the difference between two snapshots on the flame graph. png format.įor more information about flame graphs, see Flame Graphs. You can capture and export the graph separately from other data in the report.Ĭlick and select Copy to Clipboard or click Save to export the graph as an image in the. You can also search either in the whole graph or just in a specific subtree. Use and for fast navigation between search results. The graph highlights all blocks with method names matching your search request. If you want to locate a specific method on the graph, start typing its name or click and type the name in the search bar. To restore the original size of the graph, click 1:1. To focus on a specific method, double-click the corresponding block on the graph. The tooltips show the fully qualified method name, the percentage of the parent sample time, and the percentage of total sample time. Hover the mouse pointer over a block to display a tooltip. The X-axis shows the stack profile sorted from the most resource-consuming functions to the least consuming ones. On the Y-axis, there is a stack depth going from bottom up. The width of each block corresponds to the method’s CPU time or memory used (or the allocation size, in case of allocation profiling). Flame Graph layoutĮach block represents a function in the stack (a stack frame). In this case, you can use the |Show Icicle Graph option change the graph view.
Intellij profiler code#
You can start from the bottom and move up, following the code flow from parent to child methods, or use the opposite direction to explore the top blocks that show the functions running directly on the CPU. These blocks are the methods that are presented in the profile most. When you read the flame graph, focus on the widest blocks. The blue color of the blocks stands for native calls, yellow stands for Java calls. Methods that consume more CPU time and memory resources are wider than the others. The flame graph visualizes the application call tree with the rectangles that stand for frames of the call stack, ordered by width.
Intellij profiler windows#
jfr extension.įrom the main menu, select View | Tool Windows | Profiler and click Open Snapshot.Īlternatively, from the main menu, select File | Open or drag the necessary file from your system file manager to the editor. Make sure that the files that you import were created in Async Profiler or have the. You can import profiling data to the IDE for analysis using the profiling tools.
