diff options
author | Artur <artur@vaadin.com> | 2017-04-18 14:21:13 +0300 |
---|---|---|
committer | Leif Åstrand <legioth@gmail.com> | 2017-04-18 14:21:13 +0300 |
commit | 20b49db2fc4b82d9a676925a78fd13be9ef81498 (patch) | |
tree | 1385b40d0d715cecc3d3b8d78e387842af4312c3 | |
parent | 9a7a03b2f9992b573b88d13125122458b00e99d9 (diff) | |
download | vaadin-framework-20b49db2fc4b82d9a676925a78fd13be9ef81498.tar.gz vaadin-framework-20b49db2fc4b82d9a676925a78fd13be9ef81498.zip |
Ignore all external events in the Profiler (#9033)
This fixes problems with profiling the initial paint:
"SEVERE: Got end event for leftoversDownload.runAsync but is currently in null"
-rw-r--r-- | client/src/main/java/com/vaadin/client/Profiler.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/client/src/main/java/com/vaadin/client/Profiler.java b/client/src/main/java/com/vaadin/client/Profiler.java index 290ec8a4a9..afc0096469 100644 --- a/client/src/main/java/com/vaadin/client/Profiler.java +++ b/client/src/main/java/com/vaadin/client/Profiler.java @@ -475,7 +475,13 @@ public class Profiler { Set<Node> extendedTimeNodes = new HashSet<>(); for (int i = 0; i < gwtStatsEvents.length(); i++) { GwtStatsEvent gwtStatsEvent = gwtStatsEvents.get(i); + if (!evtGroup.equals(gwtStatsEvent.getEvtGroup())) { + // Only log our own events to avoid problems with events which + // are not of type start+end + continue; + } String eventName = gwtStatsEvent.getEventName(); + String type = gwtStatsEvent.getType(); boolean isExtendedEvent = gwtStatsEvent.isExtendedEvent(); boolean isBeginEvent = "begin".equals(type); |