Contents

trackingEnabled

A flag to track the activity with a signpost interval.

Declaration

static var trackingEnabled: ProcessInfo.ActivityOptions { get }

Discussion

To help you investigate perfomance issues in your app, use trackingEnabled to track the timing of a user interaction by annotating the beginning and end of an activity using a signpost interval.

Calling beginActivity(options:reason:) to begin the activity returns an object token that you retain for the duration of the activity. The logging system produces a distinct message, useful in debugging, if the object token is de-allocated before you call endActivity(_:).

The flag trackingEnabled differs from animationTrackingEnabled in the type of interval signposts the logging system emits. Use animationTrackingEnabled when the interaction involves an animation.

See Also

Related Documentation

Constants