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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.h

Issue 2343553005: enable / disable Long Task instrumentation based on presence of LongTask observer (Closed)
Patch Set: address review comments Created 4 years, 3 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: third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.h
diff --git a/third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.h b/third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.h
index 467bf8a9832f11fea567feaef9c984128d004a4b..471538be4474ce358fa4ab80d0c07a5adbaae5e7 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.h
+++ b/third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.h
@@ -29,6 +29,9 @@ public:
~InspectorWebPerfAgent();
DECLARE_VIRTUAL_TRACE();
+ void enable();
+ void disable();
+
void willExecuteScript(ExecutionContext*);
void didExecuteScript();
@@ -40,6 +43,7 @@ public:
void ReportTaskTime(double startTime, double endTime) override;
private:
+ bool m_enabled;
Member<InspectedFrames> m_inspectedFrames;
HeapHashSet<Member<Location>> m_frameContextLocations;
};
« no previous file with comments | « third_party/WebKit/Source/core/BUILD.gn ('k') | third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698