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

Side by Side Diff: src/isolate.h

Issue 2187693002: [Tracing] Embed V8 runtime call stats into tracing. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix memory leak Created 4 years, 4 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/interpreter/interpreter.cc ('k') | src/lookup.cc » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_ISOLATE_H_ 5 #ifndef V8_ISOLATE_H_
6 #define V8_ISOLATE_H_ 6 #define V8_ISOLATE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <queue> 9 #include <queue>
10 #include <set> 10 #include <set>
(...skipping 12 matching lines...) Expand all
23 #include "src/execution.h" 23 #include "src/execution.h"
24 #include "src/frames.h" 24 #include "src/frames.h"
25 #include "src/futex-emulation.h" 25 #include "src/futex-emulation.h"
26 #include "src/global-handles.h" 26 #include "src/global-handles.h"
27 #include "src/handles.h" 27 #include "src/handles.h"
28 #include "src/heap/heap.h" 28 #include "src/heap/heap.h"
29 #include "src/messages.h" 29 #include "src/messages.h"
30 #include "src/regexp/regexp-stack.h" 30 #include "src/regexp/regexp-stack.h"
31 #include "src/runtime-profiler.h" 31 #include "src/runtime-profiler.h"
32 #include "src/runtime/runtime.h" 32 #include "src/runtime/runtime.h"
33 #include "src/tracing/trace-event.h"
33 #include "src/zone.h" 34 #include "src/zone.h"
34 35
35 namespace v8 { 36 namespace v8 {
36 37
37 namespace base { 38 namespace base {
38 class RandomNumberGenerator; 39 class RandomNumberGenerator;
39 } 40 }
40 41
41 namespace internal { 42 namespace internal {
42 43
(...skipping 795 matching lines...) Expand 10 before | Expand all | Expand 10 after
838 NATIVE_CONTEXT_FIELDS(NATIVE_CONTEXT_FIELD_ACCESSOR) 839 NATIVE_CONTEXT_FIELDS(NATIVE_CONTEXT_FIELD_ACCESSOR)
839 #undef NATIVE_CONTEXT_FIELD_ACCESSOR 840 #undef NATIVE_CONTEXT_FIELD_ACCESSOR
840 841
841 Bootstrapper* bootstrapper() { return bootstrapper_; } 842 Bootstrapper* bootstrapper() { return bootstrapper_; }
842 Counters* counters() { 843 Counters* counters() {
843 // Call InitializeLoggingAndCounters() if logging is needed before 844 // Call InitializeLoggingAndCounters() if logging is needed before
844 // the isolate is fully initialized. 845 // the isolate is fully initialized.
845 DCHECK(counters_ != NULL); 846 DCHECK(counters_ != NULL);
846 return counters_; 847 return counters_;
847 } 848 }
849 tracing::TraceEventStatsTable* trace_event_stats_table() {
850 return &trace_event_stats_table_;
851 }
848 RuntimeProfiler* runtime_profiler() { return runtime_profiler_; } 852 RuntimeProfiler* runtime_profiler() { return runtime_profiler_; }
849 CompilationCache* compilation_cache() { return compilation_cache_; } 853 CompilationCache* compilation_cache() { return compilation_cache_; }
850 Logger* logger() { 854 Logger* logger() {
851 // Call InitializeLoggingAndCounters() if logging is needed before 855 // Call InitializeLoggingAndCounters() if logging is needed before
852 // the isolate is fully initialized. 856 // the isolate is fully initialized.
853 DCHECK(logger_ != NULL); 857 DCHECK(logger_ != NULL);
854 return logger_; 858 return logger_;
855 } 859 }
856 StackGuard* stack_guard() { return &stack_guard_; } 860 StackGuard* stack_guard() { return &stack_guard_; }
857 Heap* heap() { return &heap_; } 861 Heap* heap() { return &heap_; }
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after
1295 1299
1296 base::Atomic32 id_; 1300 base::Atomic32 id_;
1297 EntryStackItem* entry_stack_; 1301 EntryStackItem* entry_stack_;
1298 int stack_trace_nesting_level_; 1302 int stack_trace_nesting_level_;
1299 StringStream* incomplete_message_; 1303 StringStream* incomplete_message_;
1300 Address isolate_addresses_[kIsolateAddressCount + 1]; // NOLINT 1304 Address isolate_addresses_[kIsolateAddressCount + 1]; // NOLINT
1301 Bootstrapper* bootstrapper_; 1305 Bootstrapper* bootstrapper_;
1302 RuntimeProfiler* runtime_profiler_; 1306 RuntimeProfiler* runtime_profiler_;
1303 CompilationCache* compilation_cache_; 1307 CompilationCache* compilation_cache_;
1304 Counters* counters_; 1308 Counters* counters_;
1309 tracing::TraceEventStatsTable trace_event_stats_table_;
1305 base::RecursiveMutex break_access_; 1310 base::RecursiveMutex break_access_;
1306 Logger* logger_; 1311 Logger* logger_;
1307 StackGuard stack_guard_; 1312 StackGuard stack_guard_;
1308 StatsTable* stats_table_; 1313 StatsTable* stats_table_;
1309 StubCache* load_stub_cache_; 1314 StubCache* load_stub_cache_;
1310 StubCache* store_stub_cache_; 1315 StubCache* store_stub_cache_;
1311 CodeAgingHelper* code_aging_helper_; 1316 CodeAgingHelper* code_aging_helper_;
1312 DeoptimizerData* deoptimizer_data_; 1317 DeoptimizerData* deoptimizer_data_;
1313 bool deoptimizer_lazy_throw_; 1318 bool deoptimizer_lazy_throw_;
1314 MaterializedObjectStore* materialized_object_store_; 1319 MaterializedObjectStore* materialized_object_store_;
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
1672 1677
1673 EmbeddedVector<char, 128> filename_; 1678 EmbeddedVector<char, 128> filename_;
1674 FILE* file_; 1679 FILE* file_;
1675 int scope_depth_; 1680 int scope_depth_;
1676 }; 1681 };
1677 1682
1678 } // namespace internal 1683 } // namespace internal
1679 } // namespace v8 1684 } // namespace v8
1680 1685
1681 #endif // V8_ISOLATE_H_ 1686 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « src/interpreter/interpreter.cc ('k') | src/lookup.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698