Apple Debugging L9 - Instruments Time Profiler

  Рет қаралды 17,654

AppleProgramming

AppleProgramming

Күн бұрын

Пікірлер: 21
@srikanthgali9615
@srikanthgali9615 4 жыл бұрын
Thanks mate, The way u analysed the instruments is awsome... now profiling my projects.
@DeniseNepraunig
@DeniseNepraunig 2 жыл бұрын
Super helpful and detailed tutorial - thanks a lot!! Very well presented.
@markfromberg7267
@markfromberg7267 5 жыл бұрын
I literally searched for Instruments Time Profiler videos 3 days before you posted this. This is scary. But also very welcome and awesome. Thank you so much!
@AppleProgramming
@AppleProgramming 5 жыл бұрын
Sure thing! Not my best video; I struggled finding an example that was simple enough. Happy to do more of these if you have better examples of slow code paths you're trying to improve. Perhaps can take from GitHub projects.
@rios6984
@rios6984 2 жыл бұрын
Very useful tutorial, thanks for you efforts!)
@ps1kx
@ps1kx 2 жыл бұрын
Thanks. There's not enough videos and courses on Instruments. It's like people don't care that much? But I personally have a case where I want to fix something I can't find. Let's see if I can now!
@AppleProgramming
@AppleProgramming 2 жыл бұрын
Definitely a series I should expand on.
@yiran432
@yiran432 5 ай бұрын
how to draw flame graph by these data???
@appdevelopment2881
@appdevelopment2881 3 жыл бұрын
so glad, I found these series! Why is it necessary to increment the tag ?
@AppleProgramming
@AppleProgramming 3 жыл бұрын
Because cells can be reused. Take the case where you scroll really fast through a list. You might reuse the same cell 3 times (for example). Well that’s 3 image fetches that have gone off and will try to replace that cell with 3 different images when you really only want what should really appear in that place. There are better ways to do this that involve a better image system that allows you to cancel image operations before it tries to resize them.
@appdevelopment2881
@appdevelopment2881 3 жыл бұрын
​@@AppleProgramming I stared at it a few more minutes and now I get it! Thanks for responding.
@Seieukos
@Seieukos 3 жыл бұрын
Sort of off topic, but can't we use the indexPath instead of tag to reference the correct cell?
@AppleProgramming
@AppleProgramming 3 жыл бұрын
Not sure how you would get the current index path when you receive the image. You'd have to store that index path value on the cell to check that it is still valid. Perhaps you could try querying the cell at that index path to see if it's still valid and I suppose that would work.
@Seieukos
@Seieukos 3 жыл бұрын
@@AppleProgramming Within the async task (line 65 at time 22:05), I think the indexPath is still in scope. If we capture the indexPath within the task, we should be able to unwrap the cell from self?.collectionView.cellForItem(at: indexPath), and if it exists we can update the image. I might be missing something though -- I haven't played with diffable datasources just yet
@AppleProgramming
@AppleProgramming 3 жыл бұрын
@@Seieukos Ya, that could work. Though I'm not sure existence necessarily guarantees that it is different. I would be tempted to say that it should work, but I haven't tried.
@OfficialVybsta
@OfficialVybsta 3 жыл бұрын
VERY DEEP AND THOROUGH ID LIKE TO CONVERSE WITH YOU 1 ON 1 ABOUT A MEMORY AN CPU ISSUE I AM HAVING BUT THAT MIGHT NOT BE POSSIBLE BUT STILL VERY THOROUGH
@AppleProgramming
@AppleProgramming 3 жыл бұрын
I wish you the best in solving your issue. I do offer 1-on-1 help through Patreon if you find you need it.
@OfficialVybsta
@OfficialVybsta 3 жыл бұрын
@@AppleProgramming WHAT IS YOUR INFO THERE I HAVE A PATREON AS WELL
@OfficialVybsta
@OfficialVybsta 3 жыл бұрын
@@AppleProgramming OK I FOUND YOU
@ideluxer
@ideluxer 5 жыл бұрын
360p resolution/quality :(
@AppleProgramming
@AppleProgramming 5 жыл бұрын
ideluxer It’ll get better. Taking forever to process.
Apple Debugging L5 - Memory Graph
18:01
AppleProgramming
Рет қаралды 15 М.
CloudKit - Intro, Pricing, Terms, & Definitions
17:26
Sean Allen
Рет қаралды 23 М.
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН
Правильный подход к детям
00:18
Beatrise
Рет қаралды 11 МЛН
Xcode Configurations and Flags
21:25
Stewart Lynch
Рет қаралды 13 М.
Memory Leaks in iOS: Find, Diagnose, & Fix (2022)
12:44
iOS Academy
Рет қаралды 53 М.
How To Debug React Apps Like A Senior Developer
21:07
Web Dev Simplified
Рет қаралды 188 М.
Memory leaks. Xcode instruments
1:09:02
Mi Mari iOS
Рет қаралды 2,9 М.
Debugging Swift Memory Issues with Xcode and Profiler
25:31
Make School
Рет қаралды 26 М.
WWDC23: Analyze hangs with Instruments | Apple
42:53
Apple Developer
Рет қаралды 2,4 М.
Play: The Secret Weapon for iOS Devs & Designers
10:12
Sean Allen
Рет қаралды 38 М.
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН