|
2 | 2 |
|
3 | 3 | A simple recorder for cpu and memory usage of processes.
|
4 | 4 |
|
5 |
| -Currently, limited to linux but support for macOS might come in the future. Results are outputted in machine parsable format to stdout or can be directly plotted using gnuplot (must be in `$PATH`). |
| 5 | +Currently, linux as well as macos are supported. Results are outputted in machine parsable format to stdout or can be directly plotted using gnuplot (must be in `$PATH`). |
6 | 6 |
|
7 | 7 | ## Installation
|
8 | 8 |
|
@@ -48,24 +48,27 @@ OPTIONS:
|
48 | 48 |
|
49 | 49 | Interactive recording of specific process:
|
50 | 50 | ```
|
51 |
| -$ pgrep chrome |
| 51 | +$ pgrep iTerm |
52 | 52 | 4730
|
53 | 53 | 4742
|
54 | 54 | 4748
|
55 | 55 | 4769
|
56 | 56 | 4772
|
57 | 57 |
|
58 | 58 | $ procrec -p 4730 -g -i 1 -v
|
59 |
| -0.00 PID 4730 CPU% 1.00 RSS 283265 VSIZE 3794771968 THREADS 33 |
60 |
| -1.00 PID 4730 CPU% 3.00 RSS 283263 VSIZE 3794771968 THREADS 33 |
61 |
| -2.00 PID 4730 CPU% 1.33 RSS 283263 VSIZE 3794771968 THREADS 33 |
62 |
| -3.01 PID 4730 CPU% 1.00 RSS 283265 VSIZE 3794771968 THREADS 33 |
63 |
| -4.01 PID 4730 CPU% 0.80 RSS 283265 VSIZE 3794771968 THREADS 33 |
64 |
| -5.01 PID 4730 CPU% 2.00 RSS 283265 VSIZE 3794771968 THREADS 34 |
65 |
| -6.01 PID 4730 CPU% 1.00 RSS 283265 VSIZE 3794771968 THREADS 34 |
66 |
| -7.02 PID 4730 CPU% 2.67 RSS 283288 VSIZE 3794771968 THREADS 34 |
67 |
| -8.02 PID 4730 CPU% 0.80 RSS 283288 VSIZE 3794771968 THREADS 34 |
68 |
| -^C9.02 PID 4730 CPU% 1.33 RSS 283288 VSIZE 3794771968 THREADS 34 |
| 59 | +0.00 PID 1119 CPU% 4.32 RSS 549793 VSIZE 10123419 |
| 60 | +1.00 PID 1119 CPU% 7.84 RSS 549863 VSIZE 10123137 |
| 61 | +2.01 PID 1119 CPU% 2.96 RSS 549830 VSIZE 10119688 |
| 62 | +3.01 PID 1119 CPU% 2.47 RSS 547377 VSIZE 10087645 |
| 63 | +4.01 PID 1119 CPU% 3.65 RSS 547340 VSIZE 10091315 |
| 64 | +5.01 PID 1119 CPU% 3.31 RSS 547340 VSIZE 10091315 |
| 65 | +6.01 PID 1119 CPU% 2.63 RSS 547377 VSIZE 10087645 |
| 66 | +7.01 PID 1119 CPU% 3.87 RSS 539983 VSIZE 10074480 |
| 67 | +8.01 PID 1119 CPU% 3.34 RSS 539992 VSIZE 10074480 |
| 68 | +9.02 PID 1119 CPU% 2.68 RSS 540028 VSIZE 10070810 |
| 69 | +10.02 PID 1119 CPU% 3.75 RSS 539992 VSIZE 10074480 |
| 70 | +11.02 PID 1119 CPU% 3.43 RSS 539451 VSIZE 10073919 |
| 71 | +^C12.03 PID 1119 CPU% 8.01 RSS 272269 VSIZE 9775452 |
69 | 72 |
|
70 | 73 | ```
|
71 | 74 |
|
|
0 commit comments