Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1152)

Unified Diff: Source/core/inspector/InspectorTimelineAgent.h

Issue 213003002: DevTools: allow whitelist of timeline events to be pushed live although in bufferEvent mode. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Same with front-end Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/inspector/InspectorTimelineAgent.h
diff --git a/Source/core/inspector/InspectorTimelineAgent.h b/Source/core/inspector/InspectorTimelineAgent.h
index 39909d33ef8e20b07124e96e8be36e385dc82ece..a19553c9fe563836c2c39273031a87d505a21baf 100644
--- a/Source/core/inspector/InspectorTimelineAgent.h
+++ b/Source/core/inspector/InspectorTimelineAgent.h
@@ -42,6 +42,8 @@
#include "platform/JSONValues.h"
#include "platform/PlatformInstrumentation.h"
#include "platform/geometry/LayoutRect.h"
+#include "wtf/HashMap.h"
+#include "wtf/HashSet.h"
#include "wtf/PassOwnPtr.h"
#include "wtf/Vector.h"
#include "wtf/WeakPtr.h"
@@ -139,7 +141,7 @@ public:
virtual void enable(ErrorString*) OVERRIDE;
virtual void disable(ErrorString*) OVERRIDE;
- virtual void start(ErrorString*, const int* maxCallStackDepth, const bool* bufferEvents, const bool* includeCounters, const bool* includeGPUEvents) OVERRIDE;
+ virtual void start(ErrorString*, const int* maxCallStackDepth, const bool* bufferEvents, const String* liveEvents, const bool* includeCounters, const bool* includeGPUEvents) OVERRIDE;
virtual void stop(ErrorString*, RefPtr<TypeBuilder::Array<TypeBuilder::Timeline::TimelineEvent> >& events) OVERRIDE;
void setLayerTreeId(int layerTreeId) { m_layerTreeId = layerTreeId; }
@@ -301,6 +303,7 @@ private:
bool isStarted();
void innerStart();
void innerStop(bool fromConsole);
+ void setLiveEvents(const String&);
InspectorPageAgent* m_pageAgent;
InspectorDOMAgent* m_domAgent;
@@ -336,6 +339,7 @@ private:
typedef HashMap<ThreadIdentifier, TimelineThreadState> ThreadStateMap;
ThreadStateMap m_threadStates;
bool m_mayEmitFirstPaint;
+ HashSet<String> m_liveEvents;
};
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698