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

Side by Side Diff: src/inspector/V8HeapProfilerAgentImpl.cpp

Issue 2292053003: [inspector] Build inspector under v8_enable_inspector build flag. (Closed)
Patch Set: owners 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 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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/V8HeapProfilerAgentImpl.h" 5 #include "src/inspector/V8HeapProfilerAgentImpl.h"
6 6
7 #include "src/inspector/InjectedScript.h" 7 #include "src/inspector/InjectedScript.h"
8 #include "src/inspector/StringUtil.h" 8 #include "src/inspector/StringUtil.h"
9 #include "src/inspector/V8Debugger.h" 9 #include "src/inspector/V8Debugger.h"
10 #include "src/inspector/V8InspectorImpl.h" 10 #include "src/inspector/V8InspectorImpl.h"
11 #include "src/inspector/V8InspectorSessionImpl.h" 11 #include "src/inspector/V8InspectorSessionImpl.h"
12 #include "src/inspector/protocol/Protocol.h" 12 #include "src/inspector/protocol/Protocol.h"
13 #include "src/inspector/public/V8InspectorClient.h"
14 13
15 #include <v8-profiler.h> 14 #include "include/v8-inspector.h"
16 #include <v8-version.h> 15 #include "include/v8-profiler.h"
16 #include "include/v8-version.h"
17 17
18 namespace v8_inspector { 18 namespace v8_inspector {
19 19
20 namespace { 20 namespace {
21 21
22 namespace HeapProfilerAgentState { 22 namespace HeapProfilerAgentState {
23 static const char heapProfilerEnabled[] = "heapProfilerEnabled"; 23 static const char heapProfilerEnabled[] = "heapProfilerEnabled";
24 static const char heapObjectsTrackingEnabled[] = "heapObjectsTrackingEnabled"; 24 static const char heapObjectsTrackingEnabled[] = "heapObjectsTrackingEnabled";
25 static const char allocationTrackingEnabled[] = "allocationTrackingEnabled"; 25 static const char allocationTrackingEnabled[] = "allocationTrackingEnabled";
26 #if V8_MAJOR_VERSION >= 5 26 #if V8_MAJOR_VERSION >= 5
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 return; 415 return;
416 } 416 }
417 v8::AllocationProfile::Node* root = v8Profile->GetRootNode(); 417 v8::AllocationProfile::Node* root = v8Profile->GetRootNode();
418 *profile = protocol::HeapProfiler::SamplingHeapProfile::create() 418 *profile = protocol::HeapProfiler::SamplingHeapProfile::create()
419 .setHead(buildSampingHeapProfileNode(root)) 419 .setHead(buildSampingHeapProfileNode(root))
420 .build(); 420 .build();
421 #endif 421 #endif
422 } 422 }
423 423
424 } // namespace v8_inspector 424 } // namespace v8_inspector
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698