From 33fa6fa723db6945319e81bf39d0cc88ba0a6480 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Leif=20=C3=85strand?= Date: Thu, 21 Feb 2013 14:19:11 +0200 Subject: [PATCH] Defer profiler output (#11098) Change-Id: Iadf5290175a18663329d9254eca57831236be7c8 --- client/src/com/vaadin/client/ApplicationConnection.java | 9 +++++++-- 1 file 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(); + } + }); } } -- 2.39.5