blob: f9aa5a6af9e18b597560d48ab8c3e4b14cdc082c [file] [log] [blame]
// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file
part of models;
abstract class AllocationProfile {
DateTime get lastServiceGC;
DateTime get lastAccumulatorReset;
HeapSpace get newSpace;
HeapSpace get oldSpace;
HeapSpace get totalSpace;
Iterable<ClassHeapStats> get members;
}
abstract class ClassHeapStats {
/// [Optional] at least one between clazz and displayName should be non null
ClassRef get clazz;
/// [Optional] at least one between clazz and displayName should be non null
String get displayName;
Allocations get newSpace;
Allocations get oldSpace;
}
abstract class Allocations {
int instances = 0;
int internalSize = 0;
int externalSize = 0;
int size = 0;
}