setTraceClassAllocation method Null safety

  1. @override
Future<Success> setTraceClassAllocation(
  1. String isolateId,
  2. String classId,
  3. bool enable

The setTraceClassAllocation RPC allows for enabling or disabling allocation tracing for a specific type of object. Allocation traces can be retrieved with the getAllocationTraces RPC.

If enable is true, allocations of objects of the class represented by classId will be traced.

If isolateId refers to an isolate which has exited, then the Collected Sentinel is returned.

See Success.

This method will throw a SentinelException in the case a Sentinel is returned.


Future<Success> setTraceClassAllocation(
        String isolateId, String classId, bool enable) =>
        {'isolateId': isolateId, 'classId': classId, 'enable': enable});