From: Leif Åstrand Date: Thu, 21 Feb 2013 12:19:11 +0000 (+0200) Subject: Defer profiler output (#11098) X-Git-Tag: 7.0.2~37 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=33fa6fa723db6945319e81bf39d0cc88ba0a6480;p=vaadin-framework.git Defer profiler output (#11098) Change-Id: Iadf5290175a18663329d9254eca57831236be7c8 --- 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(); + } + }); } }