3 Replies
      Latest reply on Jun 25, 2018 4:06 PM by sjosephraj
      LaimonaS Level 1 Level 1 (0 points)

        There's an example(Paper Company) which demonstrates how logging works.

        But no word about activity tree and how it corelates.

        I found some descriptions in os.activity module.

        Is there any example which demonstrates how activity API is used in swift ?

        • Re: how to use os_activity api in swift
          eskimo Apple Staff Apple Staff (13,875 points)

          AFAICT it’s not currently feasible to use the OS activity API from Swift (r. 17129226).  This, along with the new OS logging API, presents some unique challenges to the Swift environment (macros, special string section, string coalescing, and so on).  There’s been some progress on this front for OS logging — specifically, if you import the os module you can then call oslog(_:…) (r. 17294150) — but this doesn’t yet extend to OS activity.

          Share and Enjoy

          Quinn “The Eskimo!”
          Apple Developer Relations, Developer Technical Support, Core OS/Hardware
          let myEmail = "eskimo" + "1" + "@apple.com"