I have the following lines of code in one of the functions I want to track time for, using instruments. When I run the app on simulator from instruments, the measured times with os_signpost do show up and I can accurately measure what I need.
Then I switch to device, same code. However, as it runs on device instruments does not show the measured times. It only show this:
the os_signpost times do not show up at all.
So, all works great on simulator, but not when I switch to my iPhone device.
Any idea?
let spid = OSSignpostID(log: SignpostLog.myLog, object: myObj as AnyObject)
defer { os_signpost(.end, log: SignpostLog.myLog, name: "operation1", signpostID: spid) }
os_signpost(.begin, log: SignpostLog.myLog, name: "operation1", signpostID: spid)