2 Replies
      Latest reply on Jan 11, 2019 2:15 PM by dmaclach
      dmaclach Level 1 Level 1 (0 points)

        I see in os/signpost.h a mysterious reference to configuration plists for os_logs that would allow me to specify the matching scope for signpost intervals.

         

         

        #pragma mark - Interval Matching Scope
        
        /*!
        * The matching scope for signpost intervals logged with a given os_log_t is
        * specified in that log handles's configuration plist using the
        * 'Signpost-Scope' key and defaults to process-wide scope (i.e. 'Process'
        * value) if unspecified.
        *
        * Signpost interval begin and end matching can have 3 different scopes:
        *
        * - Thread-wide: The search scope for matching begins and ends is restricted to
        *   single threads. To set this as the search scope for an os_log_t, set
        *   'Thread' as the string value for the 'Signpost-Scope' key in the
        *   os_log_t's configuration plist.
        *
        * - Process-wide (Default value): The search scope for matching begins and ends
        *   is restricted to a single process. (i.e. no cross-process intervals)
        *   To set this as the search scope for an os_log_t, set
        *   'Process' as the string value for the 'Signpost-Scope' key in the
        *   os_log_t's configuration plist or do not specify any 'Signpost-Scope' key-
        *   value pair.
        *
        * - System-wide: The search scope for matching begins and ends is not
        *   restricted. (i.e. cross-process intervals are possible)
        *   To set this as the search scope for an os_log_t, set
        *   'System' as the string value for the 'Signpost-Scope' key in the
        *   os_log_t's configuration plist.
        *
        */
        
        

        Is there any documentation anywhere on how to do this/set this up?