]> source.dussan.org Git - vaadin-framework.git/commitdiff
Log deferred widget loading time if it is slow
authorLeif Åstrand <leif@vaadin.com>
Wed, 11 Apr 2012 06:32:11 +0000 (09:32 +0300)
committerLeif Åstrand <leif@vaadin.com>
Wed, 11 Apr 2012 06:32:11 +0000 (09:32 +0300)
src/com/vaadin/terminal/gwt/client/ApplicationConnection.java

index ca771cab3922cbdb8c776eadfe2eacff6a925916..6148988b7dffe886b02ce7dc17b9145dc1fafb12 100644 (file)
@@ -961,7 +961,7 @@ public class ApplicationConnection {
             return;
         }
 
-        MultiStepDuration handleUIDLDuration = new MultiStepDuration();
+        final MultiStepDuration handleUIDLDuration = new MultiStepDuration();
 
         // Get security key
         if (json.containsKey(UIDL_SECURITY_TOKEN_ID)) {
@@ -1002,6 +1002,9 @@ public class ApplicationConnection {
 
         Command c = new Command() {
             public void execute() {
+                handleUIDLDuration.logDuration(" * Loading widgets completed",
+                        10);
+
                 MultiStepDuration updateDuration = new MultiStepDuration();
 
                 if (debugLogging) {