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

Side by Side Diff: third_party/WebKit/Source/platform/v8_inspector/V8ProfilerAgentImpl.h

Issue 1702673002: DevTools: migrate remote debugging protocol generators to jinja2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8ProfilerAgentImpl_h 5 #ifndef V8ProfilerAgentImpl_h
6 #define V8ProfilerAgentImpl_h 6 #define V8ProfilerAgentImpl_h
7 7
8 #include "platform/inspector_protocol/Frontend.h" 8 #include "platform/inspector_protocol/Frontend.h"
9 #include "platform/v8_inspector/public/V8ProfilerAgent.h" 9 #include "platform/v8_inspector/public/V8ProfilerAgent.h"
10 #include "wtf/Forward.h" 10 #include "wtf/Forward.h"
(...skipping 16 matching lines...) Expand all
27 27
28 void setInspectorState(PassRefPtr<JSONObject> state) override { m_state = st ate; } 28 void setInspectorState(PassRefPtr<JSONObject> state) override { m_state = st ate; }
29 void setFrontend(protocol::Frontend::Profiler* frontend) override { m_fronte nd = frontend; } 29 void setFrontend(protocol::Frontend::Profiler* frontend) override { m_fronte nd = frontend; }
30 void clearFrontend() override; 30 void clearFrontend() override;
31 void restore() override; 31 void restore() override;
32 32
33 void enable(ErrorString*) override; 33 void enable(ErrorString*) override;
34 void disable(ErrorString*) override; 34 void disable(ErrorString*) override;
35 void setSamplingInterval(ErrorString*, int) override; 35 void setSamplingInterval(ErrorString*, int) override;
36 void start(ErrorString*) override; 36 void start(ErrorString*) override;
37 void stop(ErrorString*, RefPtr<protocol::TypeBuilder::Profiler::CPUProfile>& ) override; 37 void stop(ErrorString*, OwnPtr<protocol::Profiler::CPUProfile>*) override;
38 38
39 void consoleProfile(const String& title) override; 39 void consoleProfile(const String& title) override;
40 void consoleProfileEnd(const String& title) override; 40 void consoleProfileEnd(const String& title) override;
41 41
42 void idleStarted(); 42 void idleStarted();
43 void idleFinished(); 43 void idleFinished();
44 44
45 private: 45 private:
46 void stop(ErrorString*, RefPtr<protocol::TypeBuilder::Profiler::CPUProfile>* );
47 String nextProfileId(); 46 String nextProfileId();
48 47
49 void startProfiling(const String& title); 48 void startProfiling(const String& title);
50 PassRefPtr<protocol::TypeBuilder::Profiler::CPUProfile> stopProfiling(const String& title, bool serialize); 49 PassOwnPtr<protocol::Profiler::CPUProfile> stopProfiling(const String& title , bool serialize);
51 50
52 bool isRecording() const; 51 bool isRecording() const;
53 52
54 V8DebuggerImpl* m_debugger; 53 V8DebuggerImpl* m_debugger;
55 v8::Isolate* m_isolate; 54 v8::Isolate* m_isolate;
56 RefPtr<JSONObject> m_state; 55 RefPtr<JSONObject> m_state;
57 protocol::Frontend::Profiler* m_frontend; 56 protocol::Frontend::Profiler* m_frontend;
58 bool m_enabled; 57 bool m_enabled;
59 bool m_recordingCPUProfile; 58 bool m_recordingCPUProfile;
60 class ProfileDescriptor; 59 class ProfileDescriptor;
61 Vector<ProfileDescriptor> m_startedProfiles; 60 Vector<ProfileDescriptor> m_startedProfiles;
62 String m_frontendInitiatedProfileId; 61 String m_frontendInitiatedProfileId;
63 }; 62 };
64 63
65 } // namespace blink 64 } // namespace blink
66 65
67 66
68 #endif // !defined(V8ProfilerAgentImpl_h) 67 #endif // !defined(V8ProfilerAgentImpl_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698