soup.message_metrics
Module for [MessageMetrics] class
Types 1
Contains metrics collected while loading a soup.message.Message either from the network or the disk cache.
Metrics are not collected by default for a soup.message.Message, you need to add the flag soup.types.MessageFlags.CollectMetrics 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 soup.message.Message is being loaded. You can connect to different soup.message.Message signals to get the final result of every value.
ulong getConnectEnd() nothrowGet the time immediately after the [soup.message.Message] completed the connection to the server. This includes the time for the proxy negotiation and TLS handshake.ulong getConnectStart() nothrowGet the time immediately before the [soup.message.Message] started to establish the connection to the server.ulong getDnsEnd() nothrowGet the time immediately after the [soup.message.Message] completed the domain lookup name for the resource.ulong getDnsStart() nothrowGet the time immediately before the [soup.message.Message] started the domain lookup name for the resource.ulong getFetchStart() nothrowGet the time immediately before the [soup.message.Message] started to fetch a resource either from a remote server or local disk cache. Returns: the fetch start timeulong getRequestBodyBytesSent() nothrowGet the number of bytes sent to the network for the request body.ulong getRequestBodySize() nothrowGet the request body size in bytes. This is the size of the original body given to the request before any encoding is applied.ulong getRequestHeaderBytesSent() nothrowGet the number of bytes sent to the network for the request headers.ulong getRequestStart() nothrowGet the time immediately before the [soup.message.Message] started the request of the resource from the server or the local disk cache. Returns: the request start timeulong getResponseBodyBytesReceived() nothrowGet the number of bytes received from the network for the response body.ulong getResponseEnd() nothrowGet the time immediately after the [soup.message.Message] received the last bytes of the response from the server or the local disk cache.ulong getResponseHeaderBytesReceived() nothrowGet the number of bytes received from the network for the response headers.ulong getResponseStart() nothrowGet the time immediately after the [soup.message.Message] received the first bytes of the response from the server or the local disk cache. Returns: the response start timeulong getTlsStart() nothrowGet the time immediately before the [soup.message.Message] started the TLS handshake.