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

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

Issue 2343733002: [inspector] enabled presubmit for inspector sub folder (Closed)
Patch Set: more fixes 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
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 #include "src/inspector/V8ProfilerAgentImpl.h" 5 #include "src/inspector/V8ProfilerAgentImpl.h"
6 6
7 #include <vector>
8
7 #include "src/base/atomicops.h" 9 #include "src/base/atomicops.h"
8 #include "src/inspector/StringUtil.h" 10 #include "src/inspector/StringUtil.h"
9 #include "src/inspector/V8Debugger.h" 11 #include "src/inspector/V8Debugger.h"
10 #include "src/inspector/V8InspectorImpl.h" 12 #include "src/inspector/V8InspectorImpl.h"
11 #include "src/inspector/V8InspectorSessionImpl.h" 13 #include "src/inspector/V8InspectorSessionImpl.h"
12 #include "src/inspector/V8StackTraceImpl.h" 14 #include "src/inspector/V8StackTraceImpl.h"
13 #include "src/inspector/protocol/Protocol.h" 15 #include "src/inspector/protocol/Protocol.h"
14 16
15 #include "include/v8-profiler.h" 17 #include "include/v8-profiler.h"
16 18
17 #include <vector>
18
19 namespace v8_inspector { 19 namespace v8_inspector {
20 20
21 namespace ProfilerAgentState { 21 namespace ProfilerAgentState {
22 static const char samplingInterval[] = "samplingInterval"; 22 static const char samplingInterval[] = "samplingInterval";
23 static const char userInitiatedProfiling[] = "userInitiatedProfiling"; 23 static const char userInitiatedProfiling[] = "userInitiatedProfiling";
24 static const char profilerEnabled[] = "profilerEnabled"; 24 static const char profilerEnabled[] = "profilerEnabled";
25 } 25 }
26 26
27 namespace { 27 namespace {
28 28
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 if (serialize) result = createCPUProfile(m_isolate, profile); 298 if (serialize) result = createCPUProfile(m_isolate, profile);
299 profile->Delete(); 299 profile->Delete();
300 return result; 300 return result;
301 } 301 }
302 302
303 bool V8ProfilerAgentImpl::isRecording() const { 303 bool V8ProfilerAgentImpl::isRecording() const {
304 return m_recordingCPUProfile || !m_startedProfiles.empty(); 304 return m_recordingCPUProfile || !m_startedProfiles.empty();
305 } 305 }
306 306
307 } // namespace v8_inspector 307 } // namespace v8_inspector
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698