diff options
author | Leif Åstrand <leif@vaadin.com> | 2013-02-21 14:19:11 +0200 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2013-02-21 14:55:16 +0000 |
commit | 33fa6fa723db6945319e81bf39d0cc88ba0a6480 (patch) | |
tree | ffc2424645f5419312ad3de86a83459188d4f43d /client | |
parent | e829d2df2510057fdb39774da826edf4fda7c1b4 (diff) | |
download | vaadin-framework-33fa6fa723db6945319e81bf39d0cc88ba0a6480.tar.gz vaadin-framework-33fa6fa723db6945319e81bf39d0cc88ba0a6480.zip |
Defer profiler output (#11098)
Change-Id: Iadf5290175a18663329d9254eca57831236be7c8
Diffstat (limited to 'client')
-rw-r--r-- | client/src/com/vaadin/client/ApplicationConnection.java | 9 |
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(); + } + }); } } |