| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // BSD-style license that can be found in the LICENSE file. | |
| 4 | |
| 5 #ifndef VM_SPACES_H_ | |
| 6 #define VM_SPACES_H_ | |
| 7 | |
| 8 // This file contains utilities shared by old and new space. | |
| 9 // TODO(koda): Create Space base class with Space::CurrentUsage(). | |
| 10 | |
| 11 namespace dart { | |
| 12 | |
| 13 // Usage statistics for a space/generation at a particular moment in time. | |
| 14 struct SpaceUsage { | |
| 15 SpaceUsage() | |
| 16 : capacity_in_words(0), | |
| 17 used_in_words(0), | |
| 18 external_in_words(0) {} | |
| 19 intptr_t capacity_in_words; | |
| 20 intptr_t used_in_words; | |
| 21 intptr_t external_in_words; | |
| 22 }; | |
| 23 | |
| 24 } // namespace dart | |
| 25 | |
| 26 #endif // VM_SPACES_H_ | |
| OLD | NEW |