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 - Наука
Thank you for the video
an immensely useful introduction by someone who clearly has a wealth of experience using the tool at work. well done, sire and thank you.
Thanks man!!!!
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 !
Great video. Thank you!
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!
thanks for the kind words. Let me see if I am able to view the recorded data as a graph
@@HighVoiceComputing thanks! Could you please let me know afterwards?
profiling and tracing nodejs in *datadog* would be amazing friend.
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.
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.
How do profile in production where nodejs runs in a container?
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.