jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fschumac...@apache.org
Subject svn commit: r1802981 - /jmeter/trunk/src/components/org/apache/jmeter/visualizers/ViewResultsFullVisualizer.java
Date Tue, 25 Jul 2017 17:10:56 GMT
Author: fschumacher
Date: Tue Jul 25 17:10:55 2017
New Revision: 1802981

URL: http://svn.apache.org/viewvc?rev=1802981&view=rev
Log:
Render the displayed sampler result less often

Bugzilla Id: 60961

Modified:
    jmeter/trunk/src/components/org/apache/jmeter/visualizers/ViewResultsFullVisualizer.java

Modified: jmeter/trunk/src/components/org/apache/jmeter/visualizers/ViewResultsFullVisualizer.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/components/org/apache/jmeter/visualizers/ViewResultsFullVisualizer.java?rev=1802981&r1=1802980&r2=1802981&view=diff
==============================================================================
--- jmeter/trunk/src/components/org/apache/jmeter/visualizers/ViewResultsFullVisualizer.java
(original)
+++ jmeter/trunk/src/components/org/apache/jmeter/visualizers/ViewResultsFullVisualizer.java
Tue Jul 25 17:10:55 2017
@@ -139,6 +139,7 @@ implements ActionListener, TreeSelection
     private static final int REFRESH_PERIOD = JMeterUtils.getPropDefault("jmeter.gui.refresh_period",
500);
 
     private ResultRenderer resultsRender = null;
+    private Object resultsObject = null;
 
     private TreeSelectionEvent lastSelectionEvent;
 
@@ -337,6 +338,7 @@ implements ActionListener, TreeSelection
             dataChanged = true;
         }
         resultsRender.clearData();
+        resultsObject = null;
     }
 
     /** {@inheritDoc} */
@@ -382,7 +384,8 @@ implements ActionListener, TreeSelection
             node = (DefaultMutableTreeNode) jTree.getLastSelectedPathComponent();
         }
 
-        if (node != null) {
+        if (node != null && node.getUserObject() != resultsObject) {
+            resultsObject = node.getUserObject();
             // to restore last tab used
             if (rightSide.getTabCount() > selectedTab) {
                 resultsRender.setLastSelectedTab(rightSide.getSelectedIndex());



Mime
View raw message