# HG changeset patch # User Severin Gehwolf # Date 1486133390 -3600 # Node ID 5f2695feaa066b6d99b7f50af6226e6e39e14f8a # Parent 4823a5a908d7a026720e7f56178301d73ed26b0b Fix loading profiling results for offline JVMs. Reviewed-by: aazores Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2017-February/022121.html diff -r 4823a5a908d7 -r 5f2695feaa06 vm-profiler/client-swing/src/main/java/com/redhat/thermostat/vm/profiler/client/swing/internal/VmProfileController.java --- a/vm-profiler/client-swing/src/main/java/com/redhat/thermostat/vm/profiler/client/swing/internal/VmProfileController.java Mon Jan 30 18:53:09 2017 +0100 +++ b/vm-profiler/client-swing/src/main/java/com/redhat/thermostat/vm/profiler/client/swing/internal/VmProfileController.java Fri Feb 03 15:49:50 2017 +0100 @@ -178,7 +178,15 @@ break; case VISIBLE: restoreState(); - view.setViewControlsEnabled(isAlive()); + boolean isAlive = isAlive(); + view.setViewControlsEnabled(isAlive); + // When the VM we've selected is dead then the overlay would + // be empty and the table wouldn't show past results + // if we didn't load latest profiling data. For live + // JVMs we load them after each stopped profiling event. + if (!isAlive) { + loadLatestProfileData(); + } updater.start(); break; default: