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

Side by Side Diff: src/heap/gc-idle-time-handler.h

Issue 465473002: Use actual incremental marking throughput in IdleNotification to estimate marking step size. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « BUILD.gn ('k') | src/heap/gc-idle-time-handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef V8_HEAP_GC_IDLE_TIME_HANDLER_H_
6 #define V8_HEAP_GC_IDLE_TIME_HANDLER_H_
7
8 #include "src/globals.h"
9
10 namespace v8 {
11 namespace internal {
12
13 // The idle time handler makes decisions about which garbage collection
14 // operations are executing during IdleNotification.
15 class GCIdleTimeHandler {
16 public:
17 static intptr_t EstimateMarkingStepSize(
18 int idle_time_in_ms, intptr_t marking_speed_in_bytes_per_ms);
19
20 // If we haven't recorded any incremental marking events yet, we carefully
21 // mark with a conservative lower bound for the marking speed.
22 static const intptr_t kInitialConservativeMarkingSpeed = 100 * KB;
23
24 // We have to make sure that we finish the IdleNotification before
25 // idle_time_in_ms. Hence, we conservatively prune our workload estimate.
26 static const double kConservativeTimeRatio;
27
28 private:
29 DISALLOW_COPY_AND_ASSIGN(GCIdleTimeHandler);
30 };
31
32 } // namespace internal
33 } // namespace v8
34
35 #endif // V8_HEAP_GC_IDLE_TIME_HANDLER_H_
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | src/heap/gc-idle-time-handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698