Beatrix has written a nice blog post on getting started with Instruments on macOS
It is indeed a useful tutorial, thanks @beatrixwillius. I’m curious though, since your app is written in Xojo - why not just profile the app in the IDE?
Instruments can does its gathering of stats way differently than Xojo’s profiler
Effectively Xojos profiler adds instrumentation code in every method, events, getter, setter etc and collates that
This has pro’s and cons
One is that the act of profiling slows your code down and so may hide certain runtime issues because of its overhead
The profiler in Xojo is simple. Simple sometimes is good. Most of the time I want the whole information. In Instruments I can get very detailed information. Xojo is more blunt. But I’m going to expand on that.
Thanks again for article @beatrixwillius. I had never used Instruments before but I will be using it going forwards.
More to come. The next instalment will tackle test preparation.
Part 2
The next part of my series of using Instruments is done: http://www.mothsoftware.com/blog_page.php?permalink=preparing-for-testing-with-instruments
Not as interesting as the interface. Nevertheless, test preparation is important. Next part will be actual testing.
Part 3
Got the third part of my series on Instruments done. After explaining the interface and doing some preparations today’s topic is doing some actual tests.
Article is here: https://www.mothsoftware.com/blog_page.php?permalink=testing-with-instruments