summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2013-02-21 14:19:11 +0200
committerVaadin Code Review <review@vaadin.com>2013-02-21 14:55:16 +0000
commit33fa6fa723db6945319e81bf39d0cc88ba0a6480 (patch)
treeffc2424645f5419312ad3de86a83459188d4f43d
parente829d2df2510057fdb39774da826edf4fda7c1b4 (diff)
downloadvaadin-framework-33fa6fa723db6945319e81bf39d0cc88ba0a6480.tar.gz
vaadin-framework-33fa6fa723db6945319e81bf39d0cc88ba0a6480.zip
Defer profiler output (#11098)
Change-Id: Iadf5290175a18663329d9254eca57831236be7c8
-rw-r--r--client/src/com/vaadin/client/ApplicationConnection.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/client/src/com/vaadin/client/ApplicationConnection.java b/client/src/com/vaadin/client/ApplicationConnection.java
index a2f2c4989a..de034a65a6 100644
--- a/client/src/com/vaadin/client/ApplicationConnection.java
+++ b/client/src/com/vaadin/client/ApplicationConnection.java
@@ -1523,8 +1523,13 @@ public class ApplicationConnection {
endRequest();
if (Profiler.isEnabled()) {
- Profiler.logTimings();
- Profiler.reset();
+ Scheduler.get().scheduleDeferred(new ScheduledCommand() {
+ @Override
+ public void execute() {
+ Profiler.logTimings();
+ Profiler.reset();
+ }
+ });
}
}