MessageMetrics
Object Hierarchy:
Soup.MessageMetrics
Soup.MessageMetrics
Soup.MessageMetrics
Description:
[ CCode ( copy_function = "g_boxed_copy" , free_function = "g_boxed_free" , type_id = "soup_message_metrics_get_type ()" ) ] [ Compact ]public class 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.
Content:
Methods:
public MessageMetrics copy ()
Copies this .
public void free ()
Frees this .
public uint64 get_connect_end ()
Get the time immediately after the [class@Message] completed the connection
to the server.
public uint64 get_connect_start ()
Get the time immediately before the [class@Message] started to establish the
connection to the server.
public uint64 get_dns_end ()
Get the time immediately after the [class@Message] completed the domain
lookup name for the resource.
public uint64 get_dns_start ()
Get the time immediately before the [class@Message] started the domain
lookup name for the resource.
public uint64 get_fetch_start ()
Get the time immediately before the [class@Message] started to fetch a
resource either from a remote server or local disk cache.
public uint64 get_request_body_bytes_sent ()
Get the number of bytes sent to the network for the request body.
public uint64 get_request_body_size ()
Get the request body size in bytes.
public uint64 get_request_header_bytes_sent ()
Get the number of bytes sent to the network for the request headers.
public uint64 get_request_start ()
Get the time immediately before the [class@Message] started the request of
the resource from the server or the local disk cache.
public uint64 get_response_body_bytes_received ()
Get the number of bytes received from the network for the response body.
public uint64 get_response_body_size ()
Get the response body size in bytes.
public uint64 get_response_end ()
Get the time immediately after the [class@Message] received the last bytes
of the response from the server or the local disk cache.
public uint64 get_response_header_bytes_received ()
Get the number of bytes received from the network for the response headers.
public uint64 get_response_start ()
Get the time immediately after the [class@Message] received the first bytes
of the response from the server or the local disk cache.
public uint64 get_tls_start ()
Get the time immediately before the [class@Message] started the TLS
handshake.