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.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 class@Message is being loaded. You can connect to different class@Message signals to get the final result of every value.

Members

Functions

copy
soup.message_metrics.MessageMetrics copy()

Copies metrics.

getConnectEnd
ulong getConnectEnd()

Get the time immediately after the classMessage completed the connection to the server. This includes the time for the proxy negotiation and TLS handshake.

getConnectStart
ulong getConnectStart()

Get the time immediately before the classMessage started to establish the connection to the server.

getDnsEnd
ulong getDnsEnd()

Get the time immediately after the classMessage completed the domain lookup name for the resource.

getDnsStart
ulong getDnsStart()

Get the time immediately before the classMessage started the domain lookup name for the resource.

getFetchStart
ulong getFetchStart()

Get the time immediately before the classMessage started to fetch a resource either from a remote server or local disk cache.

getRequestBodyBytesSent
ulong getRequestBodyBytesSent()

Get the number of bytes sent to the network for the request body.

getRequestBodySize
ulong getRequestBodySize()

Get the request body size in bytes. This is the size of the original body given to the request before any encoding is applied.

getRequestHeaderBytesSent
ulong getRequestHeaderBytesSent()

Get the number of bytes sent to the network for the request headers.

getRequestStart
ulong getRequestStart()

Get the time immediately before the classMessage started the request of the resource from the server or the local disk cache.

getResponseBodyBytesReceived
ulong getResponseBodyBytesReceived()

Get the number of bytes received from the network for the response body.

getResponseBodySize
ulong getResponseBodySize()

Get the response body size in bytes.

getResponseEnd
ulong getResponseEnd()

Get the time immediately after the classMessage received the last bytes of the response from the server or the local disk cache.

getResponseHeaderBytesReceived
ulong getResponseHeaderBytesReceived()

Get the number of bytes received from the network for the response headers.

getResponseStart
ulong getResponseStart()

Get the time immediately after the classMessage received the first bytes of the response from the server or the local disk cache.

getTlsStart
ulong getTlsStart()

Get the time immediately before the classMessage started the TLS handshake.

Inherited Members

From Boxed

cInstancePtr
void* cInstancePtr;

Pointer to the C boxed value

getType
GType getType()

Get the GType of this boxed type.

gType
GType gType [@property getter]

Boxed GType property.

self
Boxed self()

Convenience method to return this cast to a type. For use in D with statements.

copy_
void* copy_()

Make a copy of the wrapped C boxed data.

boxedCopy
void* boxedCopy(void* cBoxed)

Copy a C boxed value using g_boxed_copy.

boxedFree
void boxedFree(void* cBoxed)

Free a C boxed value using g_boxed_free.