Search code examples
javajmcjava-mission-control

Java mission control - visualize event


Is it possible to visualize JFR events on chart? Sure I can browse them in log section but I'd like to visiualize them on chart also.

A good example would be "Machine total" attribute from "CPU Load" event.

If it is possible how to achieve it?


Solution

  • Use the Designer View:

    • Window -> Show View -> Designer (Unsupported)
    • Open a JFR file
    • Go to the appropriate tab
    • Click the red stop button in the designer view
    • Use context menus in either the editor view or designer view to modify the existing GUI
    • Use the designer view and New Group or New tab to add new GUI (close and reopen the JFR file to view the new tab structure)

    This is both unsupported and undocumented, but is however how the standard JFR GUI is built. I'm trying to find an online video where either I or someone else has demoed this..

    (Your example with "Machine total" is already visualized though, both on General/Overview and Threads/Overview)

    Good luck!