]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - cddl/contrib/dtracetoolkit/Examples/wpm_example.txt
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
[FreeBSD/stable/10.git] / cddl / contrib / dtracetoolkit / Examples / wpm_example.txt
1 The following is an example of the wpm.d script.
2
3
4 This script takes the name of a program to trace, and assumes that reads
5 on file descriptor zero (STDIN) are keystrokes.
6
7 When run, a 5 second count down begins before keystrokes are measured,
8
9    # wpm.d vim
10    Measuring will start in :  5 seconds
11
12 While running, I retyped the first three sentences of this file a few times
13 which clocked the following result,
14
15    # wpm.d vim
16    Measuring will start in :  0 seconds
17    Measuring will stop in  :  0 seconds
18    
19    Characters typed : 509
20    Words per minute : 84
21    
22    Minimum keystroke latency : 12 ms
23    Average keystroke latency : 118 ms
24    Maximum keystroke latency : 493 ms
25    
26    Word size distribution (letters),
27    
28               value  ------------- Distribution ------------- count
29                   0 |                                         0
30                   1 |@@@                                      6
31                   2 |@@@@@                                    11
32                   3 |@@@@@                                    11
33                   4 |@@@@@@                                   13
34                   5 |@@@@                                     8
35                   6 |@@@@@@                                   12
36                   7 |@@@@@                                    11
37                   8 |                                         0
38                   9 |@@                                       4
39                  10 |@                                        3
40                  11 |@                                        2
41                  12 |                                         0
42                  13 |                                         0
43                  14 |                                         1
44                  15 |                                         0
45    
46    Keystroke latency distribution (ms),
47    
48               value  ------------- Distribution ------------- count
49                   4 |                                         0
50                   8 |                                         1
51                  16 |                                         5
52                  32 |@@@@@                                    66
53                  64 |@@@@@@@@@@@@@@@@@@@@                     247
54                 128 |@@@@@@@@@@@@@                            167
55                 256 |@                                        16
56                 512 |                                         0
57