summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2016-08-01 21:31:22 +0300
committerLeif Åstrand <leif@vaadin.com>2016-08-01 21:31:26 +0300
commit20253fb63ccc4c08604256c5c9e3effbda9f7dbe (patch)
treebdd23b2535a6a981e32679f8d4469423397f6b16
parentb5e8654eaba15cb611ac74395d813d10cc6fedb1 (diff)
downloadvaadin-framework-20253fb63ccc4c08604256c5c9e3effbda9f7dbe.tar.gz
vaadin-framework-20253fb63ccc4c08604256c5c9e3effbda9f7dbe.zip
Only trigger profiler after precondition checks
Change-Id: I2c5b617dbd0da4f352e494097a601cea922f14df
-rw-r--r--client/src/main/java/com/vaadin/client/widgets/Escalator.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/client/src/main/java/com/vaadin/client/widgets/Escalator.java b/client/src/main/java/com/vaadin/client/widgets/Escalator.java
index 25e83592d7..2005881b40 100644
--- a/client/src/main/java/com/vaadin/client/widgets/Escalator.java
+++ b/client/src/main/java/com/vaadin/client/widgets/Escalator.java
@@ -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