@wingman thinks he may be buzzing the tower too often...
With SwiftData, how costly is @Query?
is the performance impact of a query negligible?
Instruments to the Rescue
Apple supplies a number of external monitoring tools to find animation chokepoints, launch time delays, network activity, audio performance, memory leaks, wasted disk space, and more. In Xcode, find the Open Developer Tool
menu, then open Instruments
.
You're looking for an Instruments
profile that traces filesystem activity, including database faults
, fetches
, and saves
. Lucky for you, Instruments comes with one called Data Persistence
.
This is where my knowledge ends. I've never setup an Instruments
profile to document my applications' performance. Maybe there are tutorials on web describing Instruments? This is your adventure now.
Keep coding!
Please update your post, if you found Instruments to be useful.
WWDC Link
See -> WWDC Instruments