Uploaded image for project: 'Java Mission Control'
  1. Java Mission Control
  2. JMC-6844

Allow added Views to better respond to current page selection

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • None
    • Mission Control Client
    • None

      Problem: when adding a view via the add view dialog (found at Window -> Show view -> Other..), the view will not automatically update based on the current page selection if the JFR page is already open. Any users unaware that after adding a view they have to update their current page selection may think that the added page is bugged or not working properly.

      Using the Flameview as an example, this can be seen by:
      1. Opening a *.jfr file
      2. Navigating a to a page to view stack trace information, perhaps the Java Application page
      3. Adding the flameview to the screen
      4. The flameview will be blank, and not update based on what's currently being selected on the jfr page - until a new selection is made

      Note that if the flameview is added first, and then a *.jfr file is opened, the view has no troubles getting the information and displaying it.

      Additionally, if the JFR view is closed or a non-JFR related page is opened (e.g., a JMX Console), the flameview continues to show whatever it was displaying previously instead of clearing or displaying some sort of empty state message.

      I've attached a couple gifs and a screenshot to illustrate this:
      1. jfr-first.gif: the flameview is added while a jfr file is currently opened, and the flameview displays a blank gray screen
      2. jfr-second.gif: the flameview is added before the jfr file is opened
      3. jfr-closed-flameview.png: the jfr file has been closed, and the flameview retains the information and continues to show it

      This issue was raised in a review comment for JMC-6810 [0].

      [0] https://github.com/openjdk/jmc/pull/77#pullrequestreview-432753899

        1. jfr-second.gif
          jfr-second.gif
          484 kB
        2. jfr-first.gif
          jfr-first.gif
          688 kB
        3. jfr-closed-flameview.png
          jfr-closed-flameview.png
          144 kB

            Unassigned Unassigned
            aptmac Alex Macdonald
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: