Learn about wall clock time, and the strace command to get time information.
- [Narrator] A really understandable way…to do timing is just to find out how long something took…in the real world, and if it takes a long time…then you could use the date command,…and then you run it, and when it finishes three days later…you check the date again.…You realize, hey, three days in between.…That's not too common.…Generally you're more interested in time…and one thing you can do with Bash is have…the shell prompt include the time.…So then you can just look at the two shell prompts…and see the difference.…
And we have the time command.…The time command might be at user bin time…or maybe just bin time and this is a prefix command.…So you use the time command to run another command.…We'll use the time command to run the sleep command…and we tell sleep to sleep for two seconds…and after two seconds when that's done…time prints out the elapsed time,…and we have time use in the CPU in user space…and in the kernel which are both zero…'cause the sleep command uses so little CPU…it doesn't even show up.…
It's too small to measure,…
- Timing techniques
- Packages for performance
- Identifying and optimizing CPU bottlenecks
- Finding memory bottlenecks
- Diagnosing disk bottlenecks
Skill Level Intermediate
Learning Linux Shell Scripting (2017)with Sarath Lakshman8h 19m Intermediate
1. Performance Overview
2. CPU Bottlenecks
3. Memory Bottlenecks
4. Disk Bottlenecks
- 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.