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:
- The empty value will enable all components tracing. Equals to
enabled
. - The value of
0
ordisabled
will set a default value todisabled
. - 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"
). - 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)