addHttpClientProfilingData function

  1. @Since('3.4')
void addHttpClientProfilingData(
  1. Map<String, dynamic> requestProfile
)

Records the data associated with an HTTP request for profiling purposes.

This function should never be called directly. Instead, use package:http_profile.

Implementation

@Since('3.4')
void addHttpClientProfilingData(Map<String, dynamic> requestProfile) {
  _developerProfilingData.add(requestProfile);
  requestProfile['id'] = 'from_package/${_developerProfilingData.length}';
}