Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debugging and Profiling using Instruments - Tori #2

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Prev Previous commit
Time Profiler to compare and contrast StressTest and the OccassionalU…
…pdate views
  • Loading branch information
Tori-Lew committed Oct 11, 2023
commit c4eeee46c0ffe2f0b725ddd9df903d9b105d216e
2 changes: 2 additions & 0 deletions DebuggingAndProfiling/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ struct ContentView: View {
var body: some View {
TabView {
// 2 - The app redrew its views 7 times in the 30 sec OccassionalUpdate was in the foreground and 2,730 times while stress test was in the foreground

// 3 - In the OccationalUpdate, starting took 19.82s in the 30sec it was in the foreground. In stressTest, it took 5.96 sec. So while the views were drawn more times during the stress test, those were updating faster so it didn't use as much CPU.
OccassionalUpdate()
.tabItem {
Image(systemName: "smiley")
Expand Down