OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_HEAP_GC_TRACER_H_ | 5 #ifndef V8_HEAP_GC_TRACER_H_ |
6 #define V8_HEAP_GC_TRACER_H_ | 6 #define V8_HEAP_GC_TRACER_H_ |
7 | 7 |
8 #include "src/base/compiler-specific.h" | 8 #include "src/base/compiler-specific.h" |
9 #include "src/base/platform/platform.h" | 9 #include "src/base/platform/platform.h" |
10 #include "src/base/ring-buffer.h" | 10 #include "src/base/ring-buffer.h" |
11 #include "src/counters.h" | 11 #include "src/counters.h" |
12 #include "src/globals.h" | 12 #include "src/globals.h" |
13 #include "testing/gtest/include/gtest/gtest_prod.h" | 13 #include "testing/gtest/include/gtest/gtest_prod.h" // nogncheck |
14 | 14 |
15 namespace v8 { | 15 namespace v8 { |
16 namespace internal { | 16 namespace internal { |
17 | 17 |
18 typedef std::pair<uint64_t, double> BytesAndDuration; | 18 typedef std::pair<uint64_t, double> BytesAndDuration; |
19 | 19 |
20 inline BytesAndDuration MakeBytesAndDuration(uint64_t bytes, double duration) { | 20 inline BytesAndDuration MakeBytesAndDuration(uint64_t bytes, double duration) { |
21 return std::make_pair(bytes, duration); | 21 return std::make_pair(bytes, duration); |
22 } | 22 } |
23 | 23 |
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
437 base::RingBuffer<BytesAndDuration> recorded_old_generation_allocations_; | 437 base::RingBuffer<BytesAndDuration> recorded_old_generation_allocations_; |
438 base::RingBuffer<double> recorded_context_disposal_times_; | 438 base::RingBuffer<double> recorded_context_disposal_times_; |
439 base::RingBuffer<double> recorded_survival_ratios_; | 439 base::RingBuffer<double> recorded_survival_ratios_; |
440 | 440 |
441 DISALLOW_COPY_AND_ASSIGN(GCTracer); | 441 DISALLOW_COPY_AND_ASSIGN(GCTracer); |
442 }; | 442 }; |
443 } // namespace internal | 443 } // namespace internal |
444 } // namespace v8 | 444 } // namespace v8 |
445 | 445 |
446 #endif // V8_HEAP_GC_TRACER_H_ | 446 #endif // V8_HEAP_GC_TRACER_H_ |
OLD | NEW |