]> source.dussan.org Git - vaadin-framework.git/commitdiff
Only trigger profiler after precondition checks
authorLeif Åstrand <leif@vaadin.com>
Mon, 1 Aug 2016 18:31:22 +0000 (21:31 +0300)
committerLeif Åstrand <leif@vaadin.com>
Mon, 1 Aug 2016 18:31:26 +0000 (21:31 +0300)
Change-Id: I2c5b617dbd0da4f352e494097a601cea922f14df

client/src/main/java/com/vaadin/client/widgets/Escalator.java

index 25e83592d7045d8c5ec352abba6c9e83f6f01d6d..2005881b404ec19590cee3d21c456bee9f718e9b 100644 (file)
@@ -2190,8 +2190,6 @@ public class Escalator extends Widget implements RequiresResize,
 
         @Override
         protected void refreshCells(Range logicalRowRange, Range colRange) {
-            Profiler.enter("Escalator.AbstractStaticRowContainer.refreshRows");
-
             assertArgumentsAreValidAndWithinRange(logicalRowRange.getStart(),
                     logicalRowRange.length());
 
@@ -2199,6 +2197,8 @@ public class Escalator extends Widget implements RequiresResize,
                 return;
             }
 
+            Profiler.enter("Escalator.AbstractStaticRowContainer.refreshCells");
+
             if (hasColumnAndRowData()) {
                 for (int row = logicalRowRange.getStart(); row < logicalRowRange
                         .getEnd(); row++) {
@@ -2207,7 +2207,7 @@ public class Escalator extends Widget implements RequiresResize,
                 }
             }
 
-            Profiler.leave("Escalator.AbstractStaticRowContainer.refreshRows");
+            Profiler.leave("Escalator.AbstractStaticRowContainer.refreshCells");
         }
 
         @Override