OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 #ifndef RUNTIME_VM_SPACES_H_ | 5 #ifndef RUNTIME_VM_SPACES_H_ |
6 #define RUNTIME_VM_SPACES_H_ | 6 #define RUNTIME_VM_SPACES_H_ |
7 | 7 |
8 // This file contains utilities shared by old and new space. | 8 // This file contains utilities shared by old and new space. |
9 // TODO(koda): Create Space base class with Space::CurrentUsage(). | 9 // TODO(koda): Create Space base class with Space::CurrentUsage(). |
10 | 10 |
11 namespace dart { | 11 namespace dart { |
12 | 12 |
13 // Usage statistics for a space/generation at a particular moment in time. | 13 // Usage statistics for a space/generation at a particular moment in time. |
14 struct SpaceUsage { | 14 struct SpaceUsage { |
15 SpaceUsage() | 15 SpaceUsage() : capacity_in_words(0), used_in_words(0), external_in_words(0) {} |
16 : capacity_in_words(0), | |
17 used_in_words(0), | |
18 external_in_words(0) {} | |
19 intptr_t capacity_in_words; | 16 intptr_t capacity_in_words; |
20 intptr_t used_in_words; | 17 intptr_t used_in_words; |
21 intptr_t external_in_words; | 18 intptr_t external_in_words; |
22 }; | 19 }; |
23 | 20 |
24 } // namespace dart | 21 } // namespace dart |
25 | 22 |
26 #endif // RUNTIME_VM_SPACES_H_ | 23 #endif // RUNTIME_VM_SPACES_H_ |
OLD | NEW |