Reputation: 2674
In the XCode Instruments application there is a Core Data Saves instrument. It can show the "Save duration" for each Core Data save. What units is it using for the Save Duration? With no humanly perceptible lag time I'm seeing readings ranging from 67 to 6343.
Is this counting microseconds, something related to processor cycles, or multiples of the instrument sample time?
Upvotes: 4
Views: 697
Reputation: 33428
Save duration: Duration of the save operation in microseconds.
For further info see Apple doc.
Furthermore, if you enable the debug functionality for Core Data
-com.apple.CoreData.SQLDebug 1
You can also see duration times within the console. In this case they are expressed in seconds. To enable it see XCode4 and Core Data: How to enable SQL Debugging.
Upvotes: 6