Undocumented (and currently unsupported) service methods and classes.

_collectAllGarbage

Success _collectAllGarbage(string isolateId)

Trigger a full GC, collecting all unreachable or weakly reachable objects.

_requestHeapSnapshot

Success _requestHeapSnapshot(string isolateId, string roots, bool collectGarbage)

roots is one of User or VM. The results are returned as a stream of [_Graph] events.

_clearCpuProfile

Success _clearCpuProfile(string isolateId)

_getCpuProfile

_CpuProfile _getCpuProfile(string isolateId, string tags)

tags is one of UserVM, UserOnly, VMUser, VMOnly, or None.

_CpuProfile

class _CpuProfile extends Response {
  int sampleCount;
  int samplePeriod;
  int stackDepth;
  double timeSpan;
  int timeOriginMicros;
  int timeExtentMicros;
  CodeRegion[] codes;
  ProfileFunction[] functions;
  int[] exclusiveCodeTrie;
  int[] inclusiveCodeTrie;
  int[] exclusiveFunctionTrie;
  int[] inclusiveFunctionTrie;
}

CodeRegion

class CodeRegion {
  string kind;
  int inclusiveTicks;
  int exclusiveTicks;
  @Code code;
}

ProfileFunction

class ProfileFunction {
  string kind;
  int inclusiveTicks;
  int exclusiveTicks;
  @Function function;
  int[] codes;
}

AllocationProfile

class AllocationProfile extends Response {
  string dateLastServiceGC;
  ClassHeapStats[] members;
}

ClassHeapStats

class ClassHeapStats extends Response {
  @Class class;
  int[] new;
  int[] old;
  int promotedBytes;
  int promotedInstances;
}

HeapSpace

class HeapSpace extends Response {
  double avgCollectionPeriodMillis;
  int capacity;
  int collections;
  int external;
  String name;
  double time;
  int used;
}