MessageMetrics
Contains metrics collected while loading a class@Message either from the network or the disk cache.
Metrics are not collected by default for a class@Message, you need to add the flag %SOUP_MESSAGE_COLLECT_METRICS to enable the feature.
Temporal metrics are expressed as a monotonic time and always start with a fetch start event and finish with response end. All other events are optional. An event can be 0 because it hasn't happened yet, because it's optional or because the load failed before the event reached.
Size metrics are expressed in bytes and are updated while the class@Message is being loaded. You can connect to different class@Message signals to get the final result of every value.
Constructors
Functions
Copies @metrics.
Get the time immediately after the class@Message completed the connection to the server. This includes the time for the proxy negotiation and TLS handshake.
Get the time immediately before the class@Message started to establish the connection to the server.
Get the time immediately before the class@Message started the domain lookup name for the resource.
Get the time immediately before the class@Message started to fetch a resource either from a remote server or local disk cache.
Get the number of bytes sent to the network for the request body.
Get the request body size in bytes. This is the size of the original body given to the request before any encoding is applied.
Get the number of bytes sent to the network for the request headers.
Get the time immediately before the class@Message started the request of the resource from the server or the local disk cache.
Get the number of bytes received from the network for the response body.
Get the response body size in bytes.
Get the time immediately after the class@Message received the last bytes of the response from the server or the local disk cache.
Get the number of bytes received from the network for the response headers.
Get the time immediately after the class@Message received the first bytes of the response from the server or the local disk cache.
Get the time immediately before the class@Message started the TLS handshake.