getHttpProfile method
The getHttpProfile
RPC is used to retrieve HTTP profiling information
for requests made via dart:io
's HttpClient
.
The returned HttpProfile will only include requests issued after
httpTimelineLogging
has been enabled or after the last
clearHttpProfile
invocation.
If updatedSince
is provided, only requests started or updated since
the specified time will be reported.
Implementation
Future<HttpProfile> getHttpProfile(
String isolateId, {
DateTime? updatedSince,
}) async {
assert(await isHttpProfilingAvailable(isolateId));
return _callHelper('ext.dart.io.getHttpProfile', isolateId, args: {
if (updatedSince != null)
'updatedSince': updatedSince.microsecondsSinceEpoch,
});
}