diff options
author | Artur <artur@vaadin.com> | 2017-04-18 14:21:13 +0300 |
---|---|---|
committer | Teemu Suo-Anttila <tsuoanttila@users.noreply.github.com> | 2017-05-08 14:46:35 +0300 |
commit | 12b54e9bd14bc009bedec6ac0443ca70fe2089be (patch) | |
tree | 2f5950826270ed799bc092a3746a85c533112825 | |
parent | d8891153bc9e2f0ee5a32a59514c4578cdeceb5f (diff) | |
download | vaadin-framework-12b54e9bd14bc009bedec6ac0443ca70fe2089be.tar.gz vaadin-framework-12b54e9bd14bc009bedec6ac0443ca70fe2089be.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); |