Skip to content

An Xcode 10 project, written in Swift 4.2, companion to my tutorial on optimizing code using the Instruments Time Profile.

License

Notifications You must be signed in to change notification settings

iosbrain/Optimizing-Swift-Code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Optimizing-Swift-Code

An Xcode 10 project, written in Swift 4.2, companion to my tutorial on optimizing code using the Instruments Time Profile.

In my tutorial, we're going to use Xcode Instruments' Time Profiler to analyze the performance of this sample app's code. In simplest of terms, Time Profiler collects information about your app while it's running, determines you how long each of your functions takes to run, and also figures out the percentage of CPU cycles each of your functions is using. It gathers the same data about iOS SDK functions. The percentage of CPU cycles from 0% to 100% at each sample point is shown over time on a graph called the "timeline" or "track." There are multiple tracks. The top track aggregates all the data from all individual thread and CPU core tracks. The Time Profiler is a very powerful tool as it shows your app's performance in real time, thus reflecting surges or lulls in CPU usage. We'll walk through an example. Please join me...


Copyright (c) 2018 Andrew L. Jaffee, microIT Infrastructure, LLC, and iosbrain.com.

About

An Xcode 10 project, written in Swift 4.2, companion to my tutorial on optimizing code using the Instruments Time Profile.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages