4 Replies
      Latest reply on Mar 5, 2019 4:51 AM by ErichK
      ErichK Level 1 Level 1 (0 points)


        perhaps someone can help me with the following question :-)


        I have set some Points Of Interests in the startup phase of our application:


        kdebug_signpost_start (0, 0, 0, 0, 0);

        // some work is done

        kdebug_signpost_end (0, 0, 0, 0, 0);




        kdebug_signpost_start (1, 0, 0, 0, 0);

        // some other work is done

        kdebug_signpost_end (1, 0, 0, 0, 0);




        What I would like to do is run this special build on some systems without having to install Xcode and Instruments, profile the startup time and get the data back.

        What would be perfect is if I could import that data into Instruments and analyse it there ;-)


        I just need the information for our application process, not the whole system. And the profiling should run at least as long as the startup of the application.


        Any ideas?



        • Re: Getting a profile of systems without installing Xcode
          cwoolf Apple Staff Apple Staff (40 points)

          You can try 'ktrace artrace' if you're able to access the terminal on the target Mac.  That will take a recording of just about everything.  It's heavy handed but it probably will record those signposts too.  Just run that as root, then CMD-C it when your app finishes launching, then take the file it produces back to your development machine and open it with Instruments.  The recording isn't as full featured as what you get when Instruments is installed, but it might have what you need.


          When you open the file, Instruments will ask you to pick a template, and your template choice will more or less dictate what parts of the file you want to model in Instruments.  So in your case it could be the System Trace template or a Time Profiler template since they both have a Points of Interest instrument in them.