Apple Debugging L9 - Instruments Time Profiler

  Переглядів 14,538

AppleProgramming

AppleProgramming

День тому

Introduction to Instruments using the Time Profiler track to monitor CPU usage on various threads 🧵.
Twitter: / lucasderraugh
GitHub: github.com/lucasderraugh
Patreon: / appleprogramming
Site: derraugh.com
Microphone - amzn.to/3les4Pp
ScreenFlow - telestream.8bx6ag.net/c/19961...

КОМЕНТАРІ: 20
@srikanthgali9615
@srikanthgali9615 3 роки тому
Thanks mate, The way u analysed the instruments is awsome... now profiling my projects.
@DeniseNepraunig
@DeniseNepraunig Рік тому
Super helpful and detailed tutorial - thanks a lot!! Very well presented.
@markfromberg7267
@markfromberg7267 4 роки тому
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 4 роки тому
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 Рік тому
Very useful tutorial, thanks for you efforts!)
@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.
@ps1kx
@ps1kx Рік тому
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 Рік тому
Definitely a series I should expand on.
@Seieukos
@Seieukos 2 роки тому
Sort of off topic, but can't we use the indexPath instead of tag to reference the correct cell?
@AppleProgramming
@AppleProgramming 2 роки тому
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 2 роки тому
@@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 2 роки тому
@@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.
@ideluxer
@ideluxer 4 роки тому
360p resolution/quality :(
@AppleProgramming
@AppleProgramming 4 роки тому
ideluxer It’ll get better. Taking forever to process.
@OfficialVybsta
@OfficialVybsta 2 роки тому
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 2 роки тому
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 2 роки тому
@@AppleProgramming WHAT IS YOUR INFO THERE I HAVE A PATREON AS WELL
@OfficialVybsta
@OfficialVybsta 2 роки тому
@@AppleProgramming OK I FOUND YOU
Apple Debugging L5 - Memory Graph
18:01
AppleProgramming
Переглядів 13 тис.
Retain Cycles: How to Detect with Instruments Profiler!
13:55
Lets Build That App
Переглядів 47 тис.
Лизка заплакала смотря видео котиков🙀😭
00:33
Improve Debugging Skills | iOS | Swift/Obj C | Xcode
26:02
iCode
Переглядів 16 тис.
Memoization: The TRUE Way To Optimize Your Code In Python
7:32
Indently
Переглядів 94 тис.
Debugging Like A Pro
5:48
ByteByteGo
Переглядів 91 тис.
Xcode Breakpoints - Basic Debugging | Swift
21:53
Sean Allen
Переглядів 33 тис.
Here's the ULTIMATE tip to find memory leaks in Xcode!
5:41
Vincent Pradeilles
Переглядів 12 тис.
31 Xcode Tips & Tricks - 2023
17:45
Sean Allen
Переглядів 36 тис.
Xcode Configurations and Flags
21:25
Stewart Lynch
Переглядів 11 тис.
Debugging in Xcode 13: Tips & Tricks (2022) - iOS
14:02
iOS Academy
Переглядів 40 тис.