getClassHeapStats method

Future<List<ClassHeapStats>> getClassHeapStats()

Implementation

Future<List<vm.ClassHeapStats>> getClassHeapStats() async {
  vm.AllocationProfile profile = await getAllocationProfile();
  List<vm.ClassHeapStats> list = profile.members!
      .where((element) =>
          element.bytesCurrent! > 0 || element.instancesCurrent! > 0)
      .toList();
  return list;
}