node js CPU profiling using chrome! Learn to attach the chrome debugger to profile the CPU usage.

Поделиться
HTML-код
  • Опубликовано: 1 июл 2024
  • node js CPU profiling using chrome! Learn to attach the chrome debugger to a nodejs app to profile the CPU usage.
    This technique can be used with any nodejs application
    Sample application: expressjs.com/en/starter/hell...
    Chapters:
    0:00 Introduction to sample application
    0:53 Attach chrome debugger
    1:44 CPU profiler
    3:10 Chart profiler
    7:18 Heavy (bottom up) list
    9:41 Tree (top down) list
    12:10 Conclusion
    Attributions
    music : www.bensounds.com, audionautix.com
    images : www.pexels.com
    Links
    ------
    / highvoice.man.5
    / highvoiceman
  • НаукаНаука

Комментарии • 13

  • @maiaayaaoo7
    @maiaayaaoo7 7 месяцев назад

    Thank you for the video

  • @jonassteinberg9598
    @jonassteinberg9598 2 года назад +2

    an immensely useful introduction by someone who clearly has a wealth of experience using the tool at work. well done, sire and thank you.

  • @dddanielsr
    @dddanielsr Год назад

    Thanks man!!!!

  • @elliot_yoyo
    @elliot_yoyo Год назад

    Your videos are super interesting, you don't just show the tool but also explain what it does and how it works. Thx a lot !

  • @teelo9006
    @teelo9006 2 года назад

    Great video. Thank you!

  • @ebukaume
    @ebukaume 2 года назад +1

    Very straight to the point and really helpful. I was looking for a guide on how to view the recorded data as graph when I landed here. Your tips really helped too. Thanks!

    • @HighVoiceComputing
      @HighVoiceComputing  2 года назад +1

      thanks for the kind words. Let me see if I am able to view the recorded data as a graph

    • @ebukaume
      @ebukaume 2 года назад

      @@HighVoiceComputing thanks! Could you please let me know afterwards?

  • @jonassteinberg9598
    @jonassteinberg9598 2 года назад

    profiling and tracing nodejs in *datadog* would be amazing friend.

  • @leepoking
    @leepoking Год назад

    Awesome, thanks for the amazing video! Wondering if you can make a video about which is the best profiler software/plugin/application in your opinion :D Also would like to know if there any javascript profiler that I can use in terminal so that I can use keyboard shortcut to browse around easily! (like k9s for kubernetes) Thanks again.

    • @HighVoiceComputing
      @HighVoiceComputing  Год назад

      interestingly, i have such a video which I can publish next week. The javascript profiler can be used on the command line, however , it creates a file that is hard to read. I use visual studio code with a plugin that transforms the file to make it easier to read. Let me see if i can publish that video soon.

  • @t1279k
    @t1279k Год назад

    How do profile in production where nodejs runs in a container?

    • @HighVoiceComputing
      @HighVoiceComputing  Год назад

      if you are able to docker pull the image to a local machine , you can change the entrypoint to run node with --inspect. You can also expose the port with docker run, so you can use chrome to connect to the websocket being opened.