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/dart.h" |
9 #include "vm/gc_marker.h" | 10 #include "vm/gc_marker.h" |
10 #include "vm/gc_sweeper.h" | 11 #include "vm/gc_sweeper.h" |
11 #include "vm/lockers.h" | 12 #include "vm/lockers.h" |
12 #include "vm/object.h" | 13 #include "vm/object.h" |
13 #include "vm/os_thread.h" | 14 #include "vm/os_thread.h" |
14 #include "vm/thread_registry.h" | 15 #include "vm/thread_registry.h" |
15 #include "vm/verified_memory.h" | 16 #include "vm/verified_memory.h" |
16 #include "vm/virtual_memory.h" | 17 #include "vm/virtual_memory.h" |
17 | 18 |
18 namespace dart { | 19 namespace dart { |
(...skipping 1196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1215 return 0; | 1216 return 0; |
1216 } else { | 1217 } else { |
1217 ASSERT(total_time >= gc_time); | 1218 ASSERT(total_time >= gc_time); |
1218 int result = static_cast<int>((static_cast<double>(gc_time) / | 1219 int result = static_cast<int>((static_cast<double>(gc_time) / |
1219 static_cast<double>(total_time)) * 100); | 1220 static_cast<double>(total_time)) * 100); |
1220 return result; | 1221 return result; |
1221 } | 1222 } |
1222 } | 1223 } |
1223 | 1224 |
1224 } // namespace dart | 1225 } // namespace dart |
OLD | NEW |