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

Side by Side Diff: src/inspector/V8ProfilerAgentImpl.h

Issue 2323273002: [inspector] Drop V8_VERSION checks. (Closed)
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « src/inspector/V8HeapProfilerAgentImpl.cpp ('k') | src/inspector/V8ProfilerAgentImpl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 the V8 project 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 V8_INSPECTOR_V8PROFILERAGENTIMPL_H_ 5 #ifndef V8_INSPECTOR_V8PROFILERAGENTIMPL_H_
6 #define V8_INSPECTOR_V8PROFILERAGENTIMPL_H_ 6 #define V8_INSPECTOR_V8PROFILERAGENTIMPL_H_
7 7
8 #include "src/inspector/Allocator.h" 8 #include "src/inspector/Allocator.h"
9 #include "src/inspector/protocol/Forward.h" 9 #include "src/inspector/protocol/Forward.h"
10 #include "src/inspector/protocol/Profiler.h" 10 #include "src/inspector/protocol/Profiler.h"
(...skipping 27 matching lines...) Expand all
38 void setSamplingInterval(ErrorString*, int) override; 38 void setSamplingInterval(ErrorString*, int) override;
39 void start(ErrorString*) override; 39 void start(ErrorString*) override;
40 void stop(ErrorString*, 40 void stop(ErrorString*,
41 std::unique_ptr<protocol::Profiler::Profile>*) override; 41 std::unique_ptr<protocol::Profiler::Profile>*) override;
42 42
43 void consoleProfile(const String16& title); 43 void consoleProfile(const String16& title);
44 void consoleProfileEnd(const String16& title); 44 void consoleProfileEnd(const String16& title);
45 45
46 private: 46 private:
47 String16 nextProfileId(); 47 String16 nextProfileId();
48 v8::CpuProfiler* profiler();
49 48
50 void startProfiling(const String16& title); 49 void startProfiling(const String16& title);
51 std::unique_ptr<protocol::Profiler::Profile> stopProfiling( 50 std::unique_ptr<protocol::Profiler::Profile> stopProfiling(
52 const String16& title, bool serialize); 51 const String16& title, bool serialize);
53 52
54 bool isRecording() const; 53 bool isRecording() const;
55 54
56 V8InspectorSessionImpl* m_session; 55 V8InspectorSessionImpl* m_session;
57 v8::Isolate* m_isolate; 56 v8::Isolate* m_isolate;
58 v8::CpuProfiler* m_profiler; 57 v8::CpuProfiler* m_profiler;
59 protocol::DictionaryValue* m_state; 58 protocol::DictionaryValue* m_state;
60 protocol::Profiler::Frontend m_frontend; 59 protocol::Profiler::Frontend m_frontend;
61 bool m_enabled; 60 bool m_enabled;
62 bool m_recordingCPUProfile; 61 bool m_recordingCPUProfile;
63 class ProfileDescriptor; 62 class ProfileDescriptor;
64 std::vector<ProfileDescriptor> m_startedProfiles; 63 std::vector<ProfileDescriptor> m_startedProfiles;
65 String16 m_frontendInitiatedProfileId; 64 String16 m_frontendInitiatedProfileId;
66 }; 65 };
67 66
68 } // namespace v8_inspector 67 } // namespace v8_inspector
69 68
70 #endif // V8_INSPECTOR_V8PROFILERAGENTIMPL_H_ 69 #endif // V8_INSPECTOR_V8PROFILERAGENTIMPL_H_
OLDNEW
« no previous file with comments | « src/inspector/V8HeapProfilerAgentImpl.cpp ('k') | src/inspector/V8ProfilerAgentImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698