]> source.dussan.org Git - vaadin-framework.git/commitdiff
Defer profiler output (#11098)
authorLeif Åstrand <leif@vaadin.com>
Thu, 21 Feb 2013 12:19:11 +0000 (14:19 +0200)
committerVaadin Code Review <review@vaadin.com>
Thu, 21 Feb 2013 14:55:16 +0000 (14:55 +0000)
Change-Id: Iadf5290175a18663329d9254eca57831236be7c8

client/src/com/vaadin/client/ApplicationConnection.java

index a2f2c4989ab1bfcc2ce3abf5368776150c038f67..de034a65a621f00ec6274009a678f5463ce65d27 100644 (file)
@@ -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();
+                        }
+                    });
                 }
 
             }