Retain Cycles: How to Detect with Instruments Profiler!

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ต.ค. 2024

ความคิดเห็น • 81

  • @sejdemi
    @sejdemi 5 ปีที่แล้ว +4

    You are the mentor I always wish I had. I've learned more from you than from senior developers at places I've worked at. Thank you so much!

  • @JohanAlbrectsen
    @JohanAlbrectsen 5 ปีที่แล้ว +19

    Appreciate the topic a lot! This is not just how to render a view on the screen but actually performance optimization on highest level! Love it! More of it! Love you Brian!!!

    • @giovanniarturo893
      @giovanniarturo893 3 ปีที่แล้ว

      You probably dont care but if you guys are bored like me atm you can watch pretty much all of the new series on instaflixxer. I've been watching with my girlfriend these days xD

    • @kanedillon4107
      @kanedillon4107 3 ปีที่แล้ว

      @Giovanni Arturo definitely, been watching on KaldroStream for years myself :)

  • @christostsangaris4785
    @christostsangaris4785 5 ปีที่แล้ว +2

    What a valuable video! It took me a week to solve a retain cycle issue back in March 2018! That was the exact procedure i followed to fix it!

  • @mike_thecatlover
    @mike_thecatlover 5 ปีที่แล้ว +1

    Another video much more than what I expected to learn with than video time. This 14 minutes video covered a lot helpful stuff and vert concise. I ever watch another half an hour video regarding dealing with memory leak with instrument, not sure what learned after half an hour. Again, thanks Brian, and i gave a thumb up for every video I watched!

  • @ShubhamGupta-qo2pt
    @ShubhamGupta-qo2pt 5 ปีที่แล้ว +4

    These small closures, make developers think more practically. Great Going "Let's Build That App". Happy New Year Too..

  • @Zainanjum100
    @Zainanjum100 5 ปีที่แล้ว

    you always come up and make our life easy by demonstrating something very use full, thanks a lot.

  • @shashivendrasinghsengar792
    @shashivendrasinghsengar792 2 ปีที่แล้ว

    great video and this is helpful for junior and senior developers also . thank you so much for sharing

  • @vladimirinoz
    @vladimirinoz 4 ปีที่แล้ว

    Thank you for simple explanation of the complicated topic

  • @eleev_
    @eleev_ 5 ปีที่แล้ว +2

    Great video! There is an another way to detect retain cycles without launching Instruments app. All you need to do is to take a memory snapshot of your current, active application’s session right from the Xcode ( there is a dedicated button, on top of the console/debugger panel). There will be a cycled graph if you browse different software entities. The method is less informative IMHO, but once you get familiar with it, it will become a very powerful tool in your toolbox. Also, “malloc scribble” option needs to be turned on in project configuration settings, in order to be able to capture certain memory “situations” and be able to actually capture memory leaks.
    I’m sure many of you know this method, my apologies if it sounds too complex or confusing. Just wanted to leave it here as a reference. 😉

  • @nelglezmusic
    @nelglezmusic 5 ปีที่แล้ว +1

    So glad you covered this topic. Thanks Brian!

  • @RohitPatil_Tech
    @RohitPatil_Tech 4 ปีที่แล้ว

    Hey Brian,
    This was a very clear explanation on an important topic.
    Thanks!

  • @ayon3527
    @ayon3527 5 ปีที่แล้ว +7

    Nice demonstration, tx man. What was the tool you were using for drawing the boxes??

    • @LetsBuildThatApp
      @LetsBuildThatApp  5 ปีที่แล้ว +4

      It's called PMouse. You can download from Appstore, its not cheap but definitely very useful.

  • @srsh12345
    @srsh12345 5 ปีที่แล้ว

    Great video. So grateful to see a breakdown on this subject.

  • @taylormaxwell1277
    @taylormaxwell1277 5 ปีที่แล้ว

    This was very helpful and clear

  • @khushbookumari5154
    @khushbookumari5154 3 ปีที่แล้ว +1

    I am getting failed to attach target in instruments. Any suggestion for that is appreciated.

  • @anupamkumarlal7104
    @anupamkumarlal7104 5 ปีที่แล้ว

    Thanks for sharing such a wonderful video. Helps a lot.

  • @loganhsiao3347
    @loganhsiao3347 9 หลายเดือนก่อน

    Appreciate a lot!
    I doing the same thing, but there are still no leaks red checkmark showing up. why?🤔
    My Xcode version is 15.0.1.

  • @ulquiorramax1749
    @ulquiorramax1749 5 ปีที่แล้ว

    Hey Brian, great video for introducing us with leak profiler.
    It will be great if you make a tut about LLDB.
    Wish you a happy new year. :)

  • @sohailurrahmans2530
    @sohailurrahmans2530 3 ปีที่แล้ว

    Hey I like your tutorials very much. You are one of the best. Can you suggest me how to get OBJECT CODE for an iOS project. This is for copywriting an iOS application. Not sure how I can get an OBJECT CODE(Compiler code) for a ios app

  • @nick0hunterx
    @nick0hunterx 5 ปีที่แล้ว

    Thanks for your video.... simple but very helpful..

  • @MrQouTube
    @MrQouTube 5 ปีที่แล้ว

    Thanks! Didn't know about this tool before.

  • @YogeshPateliOS
    @YogeshPateliOS 5 ปีที่แล้ว +4

    Hey, Can You Please tell me the name of that tool that you use for draw a diagram .? Thank You Well Superrb Video big fan of yours 😀

    • @srikanthgali9615
      @srikanthgali9615 4 ปีที่แล้ว +1

      big fan of @Yogesh here :)

    • @sukshithshetty4847
      @sukshithshetty4847 4 ปีที่แล้ว +1

      Big fan sir, love your style of teaching swift iOS. May I please know in which company you work in???

  • @zeeshanahmed3716
    @zeeshanahmed3716 5 ปีที่แล้ว

    really helpful for me ....great stuff keep it up

  • @josefsantamaria
    @josefsantamaria 5 ปีที่แล้ว

    Very helpful with explanations like this!

  • @ANILKUMAR-vv1fz
    @ANILKUMAR-vv1fz 4 ปีที่แล้ว

    Awesome Video

  • @LebenWerden
    @LebenWerden 3 ปีที่แล้ว

    Hello, thank you for this video.
    I have a question about the Developer Documentation. Is there a way to make marks in the documentations? Like if you make colored marks in a book.

  • @dilsmatchanov
    @dilsmatchanov 5 ปีที่แล้ว

    Yeah! Diagrams really help. BTW when is your twitch stream going to be?

  • @pradeepsagar4312
    @pradeepsagar4312 4 ปีที่แล้ว

    Thanks a lot. Great tutorial :)

  • @ewekalane
    @ewekalane 5 ปีที่แล้ว

    Thanks! Nice tutorial.

  • @DancesWithDingo
    @DancesWithDingo 5 ปีที่แล้ว

    Do you have any suggestions for getting the stack trace to show up? It seems most of the time I go to use this tool that there is no stack trace presented.

  • @julyanfarias
    @julyanfarias 5 ปีที่แล้ว

    Amazing Brian!

  • @SudhanshuSrivastavaIndia
    @SudhanshuSrivastavaIndia 5 ปีที่แล้ว

    Wonderful as always.

  • @mubin986
    @mubin986 5 ปีที่แล้ว

    Amazing video!!
    Brain, what is the name of that painting tool you used in this video?

  • @rickisyourbro
    @rickisyourbro 5 ปีที่แล้ว +1

    I really like the intro music. Very 迷幻

  • @ChristopherCricketWallace
    @ChristopherCricketWallace 3 ปีที่แล้ว

    This video show how to create and avoid retain cycles and how to turn on the Instruments panel. It doesn't show to actually use the Instrument panel to find the code that's producing the memory leak. Sure we see a red diamond that says there is one; but how should we use that interface for more specific details?

  • @cinquain0
    @cinquain0 5 ปีที่แล้ว

    That video was fire!

  • @ignaciohernandezpina
    @ignaciohernandezpina 5 ปีที่แล้ว

    Nice video. Thankyou

  • @ВалерийСкворцов-р2т
    @ВалерийСкворцов-р2т 2 ปีที่แล้ว

    What is the name of the tool to draw right on the screen?

  • @vamsi3877
    @vamsi3877 5 ปีที่แล้ว

    Very helpful 🤗🤗

  • @DaLakersFan24
    @DaLakersFan24 4 ปีที่แล้ว

    Keep making these videos man, YT is full of trash and your educating people

  • @Oscar-ig2gm
    @Oscar-ig2gm 5 ปีที่แล้ว

    Hello, I wanted to buy one of your courses, but there is a mistake, maybe because I'm from Kazakhstan, how can I solve this problem?

    • @Oscar-ig2gm
      @Oscar-ig2gm 5 ปีที่แล้ว

      I solved this problem, I did not allow Internet payment), sorry and thank you for everything

  • @KhoaNguyen-rf9nv
    @KhoaNguyen-rf9nv 5 ปีที่แล้ว

    Fantastic

  • @rrakesh05
    @rrakesh05 5 ปีที่แล้ว

    superb...

  • @fakhryfauzan8677
    @fakhryfauzan8677 4 ปีที่แล้ว

    i still don't get it about this course, when i used weak var, and run the profiler, the leaks still up in 10 seconds of testing.. and going grey after 10 seconds of testing. and still same when i didn't use weak.

  • @VinaMelody
    @VinaMelody 3 ปีที่แล้ว

    2 years later, still one of the most relevant explanation :)

  • @oscara9709
    @oscara9709 4 ปีที่แล้ว

    Why instruments doesn't allow me to do a thing? The record button is disabled. :( Xcode 11.4

  • @nurlanakylbekov7266
    @nurlanakylbekov7266 3 ปีที่แล้ว

    I did exactly the same what he did, but I always had green color with "No leaks". Xcode 12.4

    • @prdpshkya
      @prdpshkya 7 หลายเดือนก่อน

      same for me also.

  • @fortyfour7410
    @fortyfour7410 5 ปีที่แล้ว

    What is the drawing tool pls? Needed this to teach my class as well

  • @IsraelMeshileya
    @IsraelMeshileya 5 ปีที่แล้ว

    Great 👍

  • @gokhanaydn7570
    @gokhanaydn7570 5 ปีที่แล้ว

    Hi Brain, UIKeyboardPredictionView that belongs system library UIKitCore, causes memory leak. If you can check it out in your next videos, I will be so happy. Thanks a lot for your great videos...

  • @kjbriyan9124
    @kjbriyan9124 5 ปีที่แล้ว

    Hello brian, i want ask, how to use file fbx in android studio?

    • @LetsBuildThatApp
      @LetsBuildThatApp  5 ปีที่แล้ว

      Whats a file fbx?

    • @kjbriyan9124
      @kjbriyan9124 5 ปีที่แล้ว

      @@LetsBuildThatApp FBX is file 3D animation

    • @LetsBuildThatApp
      @LetsBuildThatApp  5 ปีที่แล้ว

      I see, how do you use that kind of file?

    • @kjbriyan9124
      @kjbriyan9124 5 ปีที่แล้ว

      Lets Build That App i want show the file. I want make app dictonary for disability and the animation show language for disabilty. Animation is actor

    • @kjbriyan9124
      @kjbriyan9124 5 ปีที่แล้ว

      Lets Build That App like image with picaso. just want load fbx and show

  • @AzwinBGMs
    @AzwinBGMs 5 ปีที่แล้ว

    Nice, please create a ecomerce website with codeigniter. Please sir, i am waiting for it.

    • @LetsBuildThatApp
      @LetsBuildThatApp  5 ปีที่แล้ว

      Codeigniter is PHP right? This language strikes fear in my heart.

  • @EulerAlvarenga1
    @EulerAlvarenga1 5 ปีที่แล้ว +1

    1st one =)

  • @afaaqahmedsaqi
    @afaaqahmedsaqi 3 ปีที่แล้ว

    while(true){
    print ("❤️")
    }

  • @smackaroony
    @smackaroony 5 ปีที่แล้ว +2

    2019 is u

  • @tgsoon2002
    @tgsoon2002 5 ปีที่แล้ว

    Show how to use instruments 10:15

  • @shoebmoin10
    @shoebmoin10 5 ปีที่แล้ว

    Aaayyyyy

  • @nick0hunterx
    @nick0hunterx 5 ปีที่แล้ว

    Thanks for your video.... simple but very helpful..

  • @nick0hunterx
    @nick0hunterx 5 ปีที่แล้ว

    Thanks for your video.... simple but very helpful..