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

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

Issue 321173002: DevTools: notify backend agents about profiler started/stopped events (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: comments addressed Created 6 years, 6 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
« no previous file with comments | « Source/core/inspector/InspectorTimelineAgent.h ('k') | Source/core/inspector/WorkerInspectorController.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InspectorTimelineAgent.cpp
diff --git a/Source/core/inspector/InspectorTimelineAgent.cpp b/Source/core/inspector/InspectorTimelineAgent.cpp
index 5af270ad59dd6904e9943d16f5625c8c0ad914b0..3d6ed2362a7f6c8f898b36b706dd78d55137433d 100644
--- a/Source/core/inspector/InspectorTimelineAgent.cpp
+++ b/Source/core/inspector/InspectorTimelineAgent.cpp
@@ -346,6 +346,7 @@ void InspectorTimelineAgent::innerStart()
{
if (m_overlay)
m_overlay->startedRecordingProfile();
+ m_registry->profilerStarted();
m_state->setBoolean(TimelineAgentState::started, true);
m_instrumentingAgents->setInspectorTimelineAgent(this);
ScriptGCEvent::addEventListener(this);
@@ -402,6 +403,7 @@ void InspectorTimelineAgent::innerStop(bool fromConsole)
m_client->stopGPUEventsRecording();
}
m_instrumentingAgents->setInspectorTimelineAgent(0);
+ m_registry->profilerStopped();
ScriptGCEvent::removeEventListener(this);
clearRecordStack();
@@ -1147,7 +1149,7 @@ void InspectorTimelineAgent::unwindRecordStack()
}
InspectorTimelineAgent::InspectorTimelineAgent(InspectorPageAgent* pageAgent, InspectorLayerTreeAgent* layerTreeAgent,
- InspectorOverlay* overlay, InspectorType type, InspectorClient* client)
+ InspectorOverlay* overlay, InspectorType type, InspectorClient* client, InspectorAgentRegistry* registry)
: InspectorBaseAgent<InspectorTimelineAgent>("Timeline")
, m_pageAgent(pageAgent)
, m_layerTreeAgent(layerTreeAgent)
@@ -1163,6 +1165,7 @@ InspectorTimelineAgent::InspectorTimelineAgent(InspectorPageAgent* pageAgent, In
, m_paintSetupStart(0)
, m_mayEmitFirstPaint(false)
, m_lastProgressTimestamp(0)
+ , m_registry(registry)
{
}
« no previous file with comments | « Source/core/inspector/InspectorTimelineAgent.h ('k') | Source/core/inspector/WorkerInspectorController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698