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

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

Issue 24027002: DevTools: implement console.timeline/timelineEnd. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Review comments addressed. Created 7 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: Source/core/inspector/InspectorConsoleAgent.h
diff --git a/Source/core/inspector/InspectorConsoleAgent.h b/Source/core/inspector/InspectorConsoleAgent.h
index 388a97af11fcc357ac01192aebbfaf9cb069d4b8..a76b1b624cca1f60586d2a0ee587ff09118171cd 100644
--- a/Source/core/inspector/InspectorConsoleAgent.h
+++ b/Source/core/inspector/InspectorConsoleAgent.h
@@ -45,6 +45,7 @@ class DOMWindow;
class Frame;
class InspectorFrontend;
class InjectedScriptManager;
+class InspectorTimelineAgent;
class InstrumentingAgents;
class ResourceError;
class ResourceLoader;
@@ -59,7 +60,7 @@ typedef String ErrorString;
class InspectorConsoleAgent : public InspectorBaseAgent<InspectorConsoleAgent>, public InspectorBackendDispatcher::ConsoleCommandHandler {
WTF_MAKE_NONCOPYABLE(InspectorConsoleAgent);
public:
- InspectorConsoleAgent(InstrumentingAgents*, InspectorCompositeState*, InjectedScriptManager*);
+ InspectorConsoleAgent(InstrumentingAgents*, InspectorTimelineAgent*, InspectorCompositeState*, InjectedScriptManager*);
virtual ~InspectorConsoleAgent();
virtual void enable(ErrorString*);
@@ -80,8 +81,11 @@ public:
Vector<unsigned> consoleMessageArgumentCounts();
- void startConsoleTiming(ScriptExecutionContext*, const String& title);
- void stopConsoleTiming(ScriptExecutionContext*, const String& title, PassRefPtr<ScriptCallStack>);
+ void consoleTime(ScriptExecutionContext*, const String& title);
+ void consoleTimeEnd(ScriptExecutionContext*, const String& title, ScriptState*);
+ void consoleTimeline(ScriptExecutionContext*, const String& title, ScriptState*);
+ void consoleTimelineEnd(ScriptExecutionContext*, const String& title, ScriptState*);
+
void consoleCount(ScriptState*, PassRefPtr<ScriptArguments>);
void frameWindowDiscarded(DOMWindow*);
@@ -101,6 +105,7 @@ public:
protected:
void addConsoleMessage(PassOwnPtr<ConsoleMessage>);
+ InspectorTimelineAgent* m_timelineAgent;
InjectedScriptManager* m_injectedScriptManager;
InspectorFrontend::Console* m_frontend;
ConsoleMessage* m_previousMessage;

Powered by Google App Engine
This is Rietveld 408576698