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.
getHttpEnableTimelineLogging(String isolateId) Future<HttpTimelineLoggingState>
Gets the current state of HTTP logging for a given isolate.
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, int 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.
pauseSocketProfiling(String isolateId) Future<Success>
Pause recording socket statistics. clearSocketProfile must be called in order for collected statistics to be cleared.
setHttpEnableTimelineLogging(String isolateId, bool enable) Future<Success>
Enables or disables HTTP logging for a given isolate.
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.
startSocketProfiling(String isolateId) Future<Success>
Start profiling new socket connections. Statistics for sockets created before profiling was enabled will not be recorded.