OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #include "vm/pages.h" | 5 #include "vm/pages.h" |
6 | 6 |
7 #include "platform/assert.h" | 7 #include "platform/assert.h" |
8 #include "vm/compiler_stats.h" | 8 #include "vm/compiler_stats.h" |
9 #include "vm/gc_marker.h" | 9 #include "vm/gc_marker.h" |
10 #include "vm/gc_sweeper.h" | 10 #include "vm/gc_sweeper.h" |
11 #include "vm/lockers.h" | 11 #include "vm/lockers.h" |
12 #include "vm/object.h" | 12 #include "vm/object.h" |
13 #include "vm/thread.h" | 13 #include "vm/os_thread.h" |
14 #include "vm/verified_memory.h" | 14 #include "vm/verified_memory.h" |
15 #include "vm/virtual_memory.h" | 15 #include "vm/virtual_memory.h" |
16 | 16 |
17 namespace dart { | 17 namespace dart { |
18 | 18 |
19 DEFINE_FLAG(int, heap_growth_rate, 0, | 19 DEFINE_FLAG(int, heap_growth_rate, 0, |
20 "The max number of pages the heap can grow at a time"); | 20 "The max number of pages the heap can grow at a time"); |
21 DEFINE_FLAG(int, old_gen_growth_space_ratio, 20, | 21 DEFINE_FLAG(int, old_gen_growth_space_ratio, 20, |
22 "The desired maximum percentage of free space after old gen GC"); | 22 "The desired maximum percentage of free space after old gen GC"); |
23 DEFINE_FLAG(int, old_gen_growth_time_ratio, 3, | 23 DEFINE_FLAG(int, old_gen_growth_time_ratio, 3, |
(...skipping 1078 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1102 return 0; | 1102 return 0; |
1103 } else { | 1103 } else { |
1104 ASSERT(total_time >= gc_time); | 1104 ASSERT(total_time >= gc_time); |
1105 int result = static_cast<int>((static_cast<double>(gc_time) / | 1105 int result = static_cast<int>((static_cast<double>(gc_time) / |
1106 static_cast<double>(total_time)) * 100); | 1106 static_cast<double>(total_time)) * 100); |
1107 return result; | 1107 return result; |
1108 } | 1108 } |
1109 } | 1109 } |
1110 | 1110 |
1111 } // namespace dart | 1111 } // namespace dart |
OLD | NEW |