Class

NSURLSessionTaskMetrics

An object encapsulating the metrics for a session task.

Declaration

@interface NSURLSessionTaskMetrics : NSObject

Overview

Each NSURLSessionTaskMetrics object contains the taskInterval and redirectCount, as well as metrics for each request-and-response transaction made during the execution of the task.

Topics

Creating Task Metrics

- init

Creates a task metrics instance.

Deprecated

Accessing Task Metrics

transactionMetrics

An array of metrics for each individual request-response transaction made during the execution of the task.

NSURLSessionTaskTransactionMetrics

An object encapsulating the performance metrics collected during the execution of a session task.

taskInterval

The time interval between when a task is instantiated and when the task is completed.

redirectCount

The number of redirects that occurred during the execution of the task.

Type Methods

+ newDeprecated

Relationships

Inherits From

See Also

Collecting Task Metrics

- URLSession:task:didFinishCollectingMetrics:

Tells the delegate that the session finished collecting metrics for the task.