OLD | NEW |
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 #include "src/isolate.h" | 5 #include "src/isolate.h" |
6 | 6 |
7 #include <stdlib.h> | 7 #include <stdlib.h> |
8 | 8 |
9 #include <fstream> // NOLINT(readability/streams) | 9 #include <fstream> // NOLINT(readability/streams) |
10 #include <sstream> | 10 #include <sstream> |
(...skipping 24 matching lines...) Expand all Loading... |
35 #include "src/isolate-inl.h" | 35 #include "src/isolate-inl.h" |
36 #include "src/libsampler/sampler.h" | 36 #include "src/libsampler/sampler.h" |
37 #include "src/log.h" | 37 #include "src/log.h" |
38 #include "src/messages.h" | 38 #include "src/messages.h" |
39 #include "src/profiler/cpu-profiler.h" | 39 #include "src/profiler/cpu-profiler.h" |
40 #include "src/prototype.h" | 40 #include "src/prototype.h" |
41 #include "src/regexp/regexp-stack.h" | 41 #include "src/regexp/regexp-stack.h" |
42 #include "src/runtime-profiler.h" | 42 #include "src/runtime-profiler.h" |
43 #include "src/simulator.h" | 43 #include "src/simulator.h" |
44 #include "src/snapshot/deserializer.h" | 44 #include "src/snapshot/deserializer.h" |
45 #include "src/tracing/tracing-category-observer.h" | |
46 #include "src/v8.h" | 45 #include "src/v8.h" |
47 #include "src/version.h" | 46 #include "src/version.h" |
48 #include "src/vm-state-inl.h" | 47 #include "src/vm-state-inl.h" |
49 #include "src/wasm/wasm-module.h" | 48 #include "src/wasm/wasm-module.h" |
50 #include "src/zone/accounting-allocator.h" | 49 #include "src/zone/accounting-allocator.h" |
51 | 50 |
52 namespace v8 { | 51 namespace v8 { |
53 namespace internal { | 52 namespace internal { |
54 | 53 |
55 base::Atomic32 ThreadId::highest_thread_id_ = 0; | 54 base::Atomic32 ThreadId::highest_thread_id_ = 0; |
(...skipping 2675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2731 if (FLAG_turbo_stats_nvp) { | 2730 if (FLAG_turbo_stats_nvp) { |
2732 AsPrintableStatistics ps = {*turbo_statistics(), true}; | 2731 AsPrintableStatistics ps = {*turbo_statistics(), true}; |
2733 os << ps << std::endl; | 2732 os << ps << std::endl; |
2734 } | 2733 } |
2735 } | 2734 } |
2736 if (hstatistics() != nullptr) hstatistics()->Print(); | 2735 if (hstatistics() != nullptr) hstatistics()->Print(); |
2737 delete turbo_statistics_; | 2736 delete turbo_statistics_; |
2738 turbo_statistics_ = nullptr; | 2737 turbo_statistics_ = nullptr; |
2739 delete hstatistics_; | 2738 delete hstatistics_; |
2740 hstatistics_ = nullptr; | 2739 hstatistics_ = nullptr; |
2741 if (V8_UNLIKELY(FLAG_runtime_stats == | 2740 if (FLAG_runtime_call_stats && |
2742 v8::tracing::TracingCategoryObserver::ENABLED_BY_NATIVE)) { | 2741 !TRACE_EVENT_RUNTIME_CALL_STATS_TRACING_ENABLED()) { |
2743 OFStream os(stdout); | 2742 OFStream os(stdout); |
2744 counters()->runtime_call_stats()->Print(os); | 2743 counters()->runtime_call_stats()->Print(os); |
2745 counters()->runtime_call_stats()->Reset(); | 2744 counters()->runtime_call_stats()->Reset(); |
2746 } | 2745 } |
2747 } | 2746 } |
2748 | 2747 |
2749 | 2748 |
2750 HStatistics* Isolate::GetHStatistics() { | 2749 HStatistics* Isolate::GetHStatistics() { |
2751 if (hstatistics() == NULL) set_hstatistics(new HStatistics()); | 2750 if (hstatistics() == NULL) set_hstatistics(new HStatistics()); |
2752 return hstatistics(); | 2751 return hstatistics(); |
(...skipping 734 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3487 // Then check whether this scope intercepts. | 3486 // Then check whether this scope intercepts. |
3488 if ((flag & intercept_mask_)) { | 3487 if ((flag & intercept_mask_)) { |
3489 intercepted_flags_ |= flag; | 3488 intercepted_flags_ |= flag; |
3490 return true; | 3489 return true; |
3491 } | 3490 } |
3492 return false; | 3491 return false; |
3493 } | 3492 } |
3494 | 3493 |
3495 } // namespace internal | 3494 } // namespace internal |
3496 } // namespace v8 | 3495 } // namespace v8 |
OLD | NEW |