Tracing

public struct Tracing : OptionSet

Enable os_signpost generation in some components

By default, signpost generation is disabled. It’s possible to enable some components with status API.

The MAPBOX_MAPS_SIGNPOSTS_ENABLED environment variable can be used to manipulate the initial value of the tracing status There are a few rules for environment variable:

  1. The empty value will enable all components tracing. Equals to enabled.
  2. The value of 0 or disabled will set a default value to disabled.
  3. All other values will be processed as a component names and be enabled accordingly. The comma , delimiter has to be used to pass multiple components (e.g. "core,platform").
  4. Value is case-insensitive.
  • No tracing logs will be generated

    Declaration

    Swift

    public static let disabled: Tracing
  • Traces related to Maps SDK will be generated

    Declaration

    Swift

    public static let platform: Tracing
  • Traces related to the rendering engine will be generated

    Declaration

    Swift

    public static let core: Tracing
  • Enable all known components to generate traces.

    Declaration

    Swift

    public static let enabled: Tracing
  • Environment variable name to change the default tracing value

    Declaration

    Swift

    public static let environmentVariableName: String
  • Change tracing generation logic in runtime.

    Declaration

    Swift

    public static var status: Tracing { get set }
  • Declaration

    Swift

    public let rawValue: Int
  • Declaration

    Swift

    public init(rawValue: Int)