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 #ifndef V8_HEAP_H_ | 5 #ifndef V8_HEAP_H_ |
6 #define V8_HEAP_H_ | 6 #define V8_HEAP_H_ |
7 | 7 |
8 #include <cmath> | 8 #include <cmath> |
9 | 9 |
10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
(...skipping 2259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2270 | 2270 |
2271 // These two counters are monotomically increasing and never reset. | 2271 // These two counters are monotomically increasing and never reset. |
2272 size_t full_codegen_bytes_generated_; | 2272 size_t full_codegen_bytes_generated_; |
2273 size_t crankshaft_codegen_bytes_generated_; | 2273 size_t crankshaft_codegen_bytes_generated_; |
2274 | 2274 |
2275 // If the --deopt_every_n_garbage_collections flag is set to a positive value, | 2275 // If the --deopt_every_n_garbage_collections flag is set to a positive value, |
2276 // this variable holds the number of garbage collections since the last | 2276 // this variable holds the number of garbage collections since the last |
2277 // deoptimization triggered by garbage collection. | 2277 // deoptimization triggered by garbage collection. |
2278 int gcs_since_last_deopt_; | 2278 int gcs_since_last_deopt_; |
2279 | 2279 |
2280 static const int kMaxIdleNotificationHistogramSample = 1000; | |
2281 | |
2282 // A histogram that displays the distribution of idle notification calls. | |
2283 void* idle_notification_histogram_; | |
rmcilroy
2014/07/25 09:38:29
I'd probably call this idle_notification_hint_hist
Hannes Payer (out of office)
2014/07/25 10:08:20
Yeah, we do not really have a category for this co
| |
2284 | |
2280 #ifdef VERIFY_HEAP | 2285 #ifdef VERIFY_HEAP |
2281 int no_weak_object_verification_scope_depth_; | 2286 int no_weak_object_verification_scope_depth_; |
2282 #endif | 2287 #endif |
2283 | 2288 |
2284 static const int kAllocationSiteScratchpadSize = 256; | 2289 static const int kAllocationSiteScratchpadSize = 256; |
2285 int allocation_sites_scratchpad_length_; | 2290 int allocation_sites_scratchpad_length_; |
2286 | 2291 |
2287 static const int kMaxMarkSweepsInIdleRound = 7; | 2292 static const int kMaxMarkSweepsInIdleRound = 7; |
2288 static const int kIdleScavengeThreshold = 5; | 2293 static const int kIdleScavengeThreshold = 5; |
2289 | 2294 |
(...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2783 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2788 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
2784 | 2789 |
2785 private: | 2790 private: |
2786 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2791 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2787 }; | 2792 }; |
2788 #endif // DEBUG | 2793 #endif // DEBUG |
2789 | 2794 |
2790 } } // namespace v8::internal | 2795 } } // namespace v8::internal |
2791 | 2796 |
2792 #endif // V8_HEAP_H_ | 2797 #endif // V8_HEAP_H_ |
OLD | NEW |