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

Side by Side Diff: src/heap/heap.h

Issue 1167563005: Make old generation allocation throughput stats independent from the new space allocation throughpu… (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: cast Created 5 years, 6 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/heap/gc-tracer.cc ('k') | src/heap/heap.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_HEAP_HEAP_H_ 5 #ifndef V8_HEAP_HEAP_H_
6 #define V8_HEAP_HEAP_H_ 6 #define V8_HEAP_HEAP_H_
7 7
8 #include <cmath> 8 #include <cmath>
9 #include <map> 9 #include <map>
10 10
(...skipping 2124 matching lines...) Expand 10 before | Expand all | Expand 10 after
2135 unsigned int maximum_size_scavenges_; 2135 unsigned int maximum_size_scavenges_;
2136 2136
2137 // TODO(hpayer): Allocation site pretenuring may make this method obsolete. 2137 // TODO(hpayer): Allocation site pretenuring may make this method obsolete.
2138 // Re-visit incremental marking heuristics. 2138 // Re-visit incremental marking heuristics.
2139 bool IsHighSurvivalRate() { return high_survival_rate_period_length_ > 0; } 2139 bool IsHighSurvivalRate() { return high_survival_rate_period_length_ > 0; }
2140 2140
2141 void ConfigureInitialOldGenerationSize(); 2141 void ConfigureInitialOldGenerationSize();
2142 2142
2143 void SelectScavengingVisitorsTable(); 2143 void SelectScavengingVisitorsTable();
2144 2144
2145 bool HasLowAllocationRate(size_t allocaion_rate); 2145 bool HasLowYoungGenerationAllocationRate();
2146 bool HasLowOldGenerationAllocationRate();
2147 bool HasLowAllocationRate();
2146 2148
2147 void ReduceNewSpaceSize(size_t allocaion_rate); 2149 void ReduceNewSpaceSize();
2148 2150
2149 bool TryFinalizeIdleIncrementalMarking( 2151 bool TryFinalizeIdleIncrementalMarking(
2150 double idle_time_in_ms, size_t size_of_objects, 2152 double idle_time_in_ms, size_t size_of_objects,
2151 size_t mark_compact_speed_in_bytes_per_ms); 2153 size_t mark_compact_speed_in_bytes_per_ms);
2152 2154
2153 GCIdleTimeHandler::HeapState ComputeHeapState(); 2155 GCIdleTimeHandler::HeapState ComputeHeapState();
2154 2156
2155 bool PerformIdleTimeAction(GCIdleTimeAction action, 2157 bool PerformIdleTimeAction(GCIdleTimeAction action,
2156 GCIdleTimeHandler::HeapState heap_state, 2158 GCIdleTimeHandler::HeapState heap_state,
2157 double deadline_in_ms); 2159 double deadline_in_ms);
(...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after
2727 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 2729 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
2728 2730
2729 private: 2731 private:
2730 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2732 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2731 }; 2733 };
2732 #endif // DEBUG 2734 #endif // DEBUG
2733 } 2735 }
2734 } // namespace v8::internal 2736 } // namespace v8::internal
2735 2737
2736 #endif // V8_HEAP_HEAP_H_ 2738 #endif // V8_HEAP_HEAP_H_
OLDNEW
« no previous file with comments | « src/heap/gc-tracer.cc ('k') | src/heap/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698