DartIOExtension extension

on

Methods

clearHttpProfile(String isolateId) Future<Success>
The clearHttpProfile RPC is used to clear previously recorded HTTP requests from the HTTP profiler state. Requests still in-flight after clearing the profiler state will be ignored by the profiler.
clearSocketProfile(String isolateId) Future<Success>
Removes all statistics associated with prior and current sockets.
getDartIOVersion(String isolateId) Future<Version>
The getDartIOVersion RPC returns the available version of the dart:io service protocol extensions.
getHttpProfile(String isolateId, {int? updatedSince}) Future<HttpProfile>
The getHttpProfile RPC is used to retrieve HTTP profiling information for requests made via dart:io's HttpClient.
getHttpProfileRequest(String isolateId, String id) Future<HttpProfileRequest>
The getHttpProfileRequest RPC is used to retrieve an instance of HttpProfileRequest, which includes request and response body data.
getOpenFileById(String isolateId, int id) Future<OpenFile>
The getOpenFileById RPC is used to retrieve information about files currently opened by dart:io from a given isolate.
getOpenFiles(String isolateId) Future<OpenFileList>
The getOpenFiles RPC is used to retrieve the list of files currently opened files by dart:io from a given isolate.
getSocketProfile(String isolateId) Future<SocketProfile>
The getSocketProfile RPC is used to retrieve socket statistics collected by the socket profiler. Only samples collected after the initial socketProfilingEnabled call or the last call to clearSocketProfile will be reported.
getSpawnedProcessById(String isolateId, int id) Future<SpawnedProcess>
The getSpawnedProcessById RPC is used to retrieve information about a process spawned by dart:io from a given isolate.
getSpawnedProcesses(String isolateId) Future<SpawnedProcessList>
The getSpawnedProcesses RPC is used to retrieve the list of processed opened by dart:io from a given isolate
httpEnableTimelineLogging(String isolateId, [bool? enabled]) Future<HttpTimelineLoggingState>
The httpEnableTimelineLogging RPC is used to set and inspect the value of HttpClient.enableTimelineLogging, which determines if HTTP client requests should be logged to the timeline. If enabled is provided, the state of HttpClient.enableTimelineLogging will be updated to the value of enabled.
isHttpProfilingAvailable(String isolateId) Future<bool>
Whether HTTP profiling is available for the given isolateId.
isHttpTimelineLoggingAvailable(String isolateId) Future<bool>
Whether HTTP timeline logging is available for the given isolateId.
isSocketProfilingAvailable(String isolateId) Future<bool>
Whether socket profiling is available for the given isolateId.
socketProfilingEnabled(String isolateId, [bool? enabled]) Future<SocketProfilingState>
The socketProfilingEnabled RPC is used to enable/disable the socket profiler and query its current state. If enabled is provided, the profiler state will be updated to reflect the value of enabled.