Discover how to use Node’s built-in V8 profiler and processor to determine what code keeps your CPU busy.
- [Instructor] So far, we've used external tools…and internal code changes to get a glimpse…into the performance of our application's code execution.…There's another technique…that's already built into node, profiling.…Software profiling is a form of dynamic program analysis,…which means that the program is actually running…when the analysis is performed.…Profiling can answer questions like the number of times…each method is called and how long the methods take.…Often, these include resource usage…such as the amount of memory or CPU that's used.…
Node has a built-in profiler which in turn…uses the V8's profiler.…Node's profiler records important events…such as just-in-time compiles and regular samples.…The record of these events in samples…is saved to a log file.…On their own, these profiler logs aren't very useful.…The information is better read with a tool…that aggregates events and produces reports.…Fortunately, Node also includes a V8 profiler processor…that we're going to use.…Some IDEs include built-in profiler and profiler processors,…
- Building a troubleshooting mindset
- Why measure performance?
- What's a microservice architecture?
- Managing microservices with PM2
- Effective logging strategies
- Debugging Node.js applications
- Benchmarking performance
- Profiling code execution
- Knowing what to optimize
Skill Level Intermediate
1. Build a Troubleshooting Mindset
2. Introducing Microservices
3. Effective Logging Strategies
4. Debugging Node.js Applications
Debugging isn't just logging3m 51s
5. Measuring Performance
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.