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

Side by Side Diff: src/inspector/v8-profiler-agent-impl.cc

Issue 2343733002: [inspector] enabled presubmit for inspector sub folder (Closed)
Patch Set: addressed comments 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/v8-profiler-agent-impl.h ('k') | src/inspector/v8-regex.h » ('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 #include "src/inspector/v8-profiler-agent-impl.h" 5 #include "src/inspector/v8-profiler-agent-impl.h"
6 6
7 #include <vector>
8
7 #include "src/base/atomicops.h" 9 #include "src/base/atomicops.h"
8 #include "src/inspector/protocol/Protocol.h" 10 #include "src/inspector/protocol/Protocol.h"
9 #include "src/inspector/string-util.h" 11 #include "src/inspector/string-util.h"
10 #include "src/inspector/v8-debugger.h" 12 #include "src/inspector/v8-debugger.h"
11 #include "src/inspector/v8-inspector-impl.h" 13 #include "src/inspector/v8-inspector-impl.h"
12 #include "src/inspector/v8-inspector-session-impl.h" 14 #include "src/inspector/v8-inspector-session-impl.h"
13 #include "src/inspector/v8-stack-trace-impl.h" 15 #include "src/inspector/v8-stack-trace-impl.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 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 bool V8ProfilerAgentImpl::idleFinished() { 312 bool V8ProfilerAgentImpl::idleFinished() {
313 if (m_profiler) m_profiler->SetIdle(false); 313 if (m_profiler) m_profiler->SetIdle(false);
314 return m_profiler; 314 return m_profiler;
315 } 315 }
316 316
317 void V8ProfilerAgentImpl::collectSample() { 317 void V8ProfilerAgentImpl::collectSample() {
318 if (m_profiler) m_profiler->CollectSample(); 318 if (m_profiler) m_profiler->CollectSample();
319 } 319 }
320 320
321 } // namespace v8_inspector 321 } // namespace v8_inspector
OLDNEW
« no previous file with comments | « src/inspector/v8-profiler-agent-impl.h ('k') | src/inspector/v8-regex.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698