今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
More timing techniques
- [Instructor] Now we can talk about response time. That is the delta in time between you provided some sort of stimulus, like send a message, and how long it took to get back a response, like an answer. Let's say you got a script like ask.sh and ans.sh. And what we do is we send a message out on a TCP port and on Linux it's really pretty cool. You can use dev/tcp/host like a local host and a port number. And if you're write into that, it's writing that out into that port number. And if you have another process, say listening on that port, like our ans.sh does, then it'll get that message. And then this one we listen on 1235, and we send back a message on 1235. And we sleep four seconds in between. And we have a really crude amount of time here. We just measure elapse time in seconds. Built in the shell is a variable called seconds that returns the number of seconds since whenever. But the difference there is the elapsed seconds and we just see it took four seconds, kind of as…
内容
-
-
-
What do we mean by performance?3 分钟 31 秒
-
Timing techniques5 分钟 13 秒
-
(已锁定)
More timing techniques2 分钟 53 秒
-
(已锁定)
Timing techniques solution3 分钟 21 秒
-
(已锁定)
The proc filesystem7 分钟 58 秒
-
(已锁定)
Packages for performance6 分钟 8 秒
-
(已锁定)
Performance Copilot and Tuna3 分钟 24 秒
-
(已锁定)
PMChart and TUNA6 分钟 56 秒
-
(已锁定)
Intro to Berkeley Packet Filter3 分钟 17 秒
-
-
-
-
-