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

Side by Side Diff: Source/core/inspector/InspectorTracingAgent.h

Issue 593123003: DevTools: make console.timeline/timelineEnd work for tracing based Timeline (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed comments Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright 2014 The Chromium Authors. All rights reserved. 2 * Copyright 2014 The Chromium Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 #ifndef InspectorTracingAgent_h 7 #ifndef InspectorTracingAgent_h
8 #define InspectorTracingAgent_h 8 #define InspectorTracingAgent_h
9 9
10 #include "core/InspectorFrontend.h" 10 #include "core/InspectorFrontend.h"
(...skipping 13 matching lines...) Expand all
24 public: 24 public:
25 static PassOwnPtrWillBeRawPtr<InspectorTracingAgent> create(InspectorClient* client, InspectorWorkerAgent* workerAgent) 25 static PassOwnPtrWillBeRawPtr<InspectorTracingAgent> create(InspectorClient* client, InspectorWorkerAgent* workerAgent)
26 { 26 {
27 return adoptPtrWillBeNoop(new InspectorTracingAgent(client, workerAgent) ); 27 return adoptPtrWillBeNoop(new InspectorTracingAgent(client, workerAgent) );
28 } 28 }
29 29
30 // Base agent methods. 30 // Base agent methods.
31 virtual void restore() OVERRIDE; 31 virtual void restore() OVERRIDE;
32 virtual void setFrontend(InspectorFrontend*) OVERRIDE; 32 virtual void setFrontend(InspectorFrontend*) OVERRIDE;
33 33
34 void consoleTimeline(const String& title);
35 void consoleTimelineEnd(const String& title);
36
37 // Protocol method implementations. 34 // Protocol method implementations.
38 virtual void start(ErrorString*, const String& categoryFilter, const String& , const double*) OVERRIDE; 35 virtual void start(ErrorString*, const String& categoryFilter, const String& , const double*) OVERRIDE;
39 virtual void end(ErrorString*); 36 virtual void end(ErrorString*);
40 37
41 // Methods for other agents to use. 38 // Methods for other agents to use.
42 void setLayerTreeId(int); 39 void setLayerTreeId(int);
43 40
44 private: 41 private:
45 InspectorTracingAgent(InspectorClient*, InspectorWorkerAgent*); 42 InspectorTracingAgent(InspectorClient*, InspectorWorkerAgent*);
46 43
47 void emitMetadataEvents(); 44 void emitMetadataEvents();
48 void innerStart(const String& categoryFilter, bool fromConsole);
49 String sessionId(); 45 String sessionId();
50 void notifyTracingStopped();
51 46
52 int m_layerTreeId; 47 int m_layerTreeId;
53 InspectorClient* m_client; 48 InspectorClient* m_client;
54 Vector<String> m_consoleTimelines;
55 InspectorFrontend::Tracing* m_frontend; 49 InspectorFrontend::Tracing* m_frontend;
56 InspectorWorkerAgent* m_workerAgent; 50 InspectorWorkerAgent* m_workerAgent;
57 }; 51 };
58 52
59 } 53 }
60 54
61 #endif // InspectorTracingAgent_h 55 #endif // InspectorTracingAgent_h
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorController.cpp ('k') | Source/core/inspector/InspectorTracingAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698