summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorArtur <artur@vaadin.com>2017-04-18 14:21:13 +0300
committerLeif Åstrand <legioth@gmail.com>2017-04-18 14:21:13 +0300
commit20b49db2fc4b82d9a676925a78fd13be9ef81498 (patch)
tree1385b40d0d715cecc3d3b8d78e387842af4312c3 /client
parent9a7a03b2f9992b573b88d13125122458b00e99d9 (diff)
downloadvaadin-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"
Diffstat (limited to 'client')
-rw-r--r--client/src/main/java/com/vaadin/client/Profiler.java6
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);