1STATS-COLLECT(1) Generated Python Manual STATS-COLLECT(1)
2
3
4
6 stats-collect
7
9 stats-collect [-h] [-q] [-d] [--version] [--force-color] {de‐
10 ploy,start,report} ...
11
13 stats-collect - a tool for collecting and visualising system statistics
14 and telemetry.
15
16
18 -h Show this help message and exit.
19
20
21 -q Be quiet.
22
23
24 -d Print debugging information.
25
26
27 --version
28 Print version and exit.
29
30
31 --force-color
32 Force coloring of the text output.
33
34
36 stats-collect deploy
37 Deploy stats-collect helpers.
38
39 stats-collect start
40 Start the measurements.
41
42 stats-collect report
43 Create an HTML report.
44
45
47 usage: stats-collect deploy [-h] [-q] [-d] [--tmpdir-path TMPDIR_PATH]
48 [--keep-tmpdir] [-H HOSTNAME] [-U USERNAME] [-K PRIVKEY] [-T TIMEOUT]
49
50 Deploy stats-collect helpers to a remote SUT (System Under Test).
51
52
54 -h Show this help message and exit.
55
56
57 -q Be quiet.
58
59
60 -d Print debugging information.
61
62
63 --tmpdir-path TMPDIR_PATH
64 When 'stats-collect' is deployed, a random temporary directory
65 is used. Use this option provide a custom path instead. It will
66 be used as a temporary directory on both local and remote hosts.
67 This option is meant for debugging purposes.
68
69
70 --keep-tmpdir
71 Do not remove the temporary directories created while deploying
72 'stats-collect'. This option is meant for debugging purposes.
73
74
75 -H HOSTNAME, --host HOSTNAME
76 Name of the host to run the command on.
77
78
79 -U USERNAME, --username USERNAME
80 Name of the user to use for logging into the remote host over
81 SSH. The default user name is 'root'.
82
83
84 -K PRIVKEY, --priv-key PRIVKEY
85 Path to the private SSH key that should be used for logging into
86 the remote host. By default the key is automatically found from
87 standard paths like '~/.ssh'.
88
89
90 -T TIMEOUT, --timeout TIMEOUT
91 SSH connect timeout in seconds, default is 8.
92
93
95 usage: stats-collect start [-h] [-q] [-d] [-H HOSTNAME] [-U USERNAME]
96 [-K PRIVKEY] [-T TIMEOUT] [--cpunum CPUNUM] [--time-limit LIMIT] [-o
97 OUTDIR] [--reportid REPORTID] [--stats STATS] [--stats-intervals
98 STATS_INTERVALS] [--report] cmd [cmd ...]
99
100 Start collecting statistics.
101
102
103 cmd Command to run on the SUT during statistics collection. If
104 'HOSTNAME' is provided, the tool will run the command on that
105 host, otherwise the tool will run the command on 'localhost'.
106
107
109 -h Show this help message and exit.
110
111
112 -q Be quiet.
113
114
115 -d Print debugging information.
116
117
118 -H HOSTNAME, --host HOSTNAME
119 Name of the host to run the command on.
120
121
122 -U USERNAME, --username USERNAME
123 Name of the user to use for logging into the remote host over
124 SSH. The default user name is 'root'.
125
126
127 -K PRIVKEY, --priv-key PRIVKEY
128 Path to the private SSH key that should be used for logging into
129 the remote host. By default the key is automatically found from
130 standard paths like '~/.ssh'.
131
132
133 -T TIMEOUT, --timeout TIMEOUT
134 SSH connect timeout in seconds, default is 8.
135
136
137 --cpunum CPUNUM
138 If the executed command stresses a particular CPU number, you
139 can specify it via this option so that the number is saved in
140 the test result and later the 'stats-collect report' command
141 will take this into account while generating the test report.
142
143
144 --time-limit LIMIT
145 The time limit for statistics collection, after which the col‐
146 lection will stop if the command 'cmd' (given as a positional
147 argument) has not finished executing.
148
149
150 -o OUTDIR, --outdir OUTDIR
151
152
153 --reportid REPORTID
154 Any string which may serve as an identifier of this run. By de‐
155 fault report ID is the current date, prefixed with the remote
156 host name in case the '-H' option was used: [hostname-]YYYYMMDD.
157 For example, "20150323" is a report ID for a run made on March
158 23, 2015. The allowed characters are: ACSII alphanumeric, '-',
159 '.', ',', '_', and '~'.
160
161
162 --stats STATS
163 Comma-separated list of statistics to collect. They are stored
164 in the the "stats" sub-directory of the output directory. By de‐
165 fault, only 'turbostat, sysinfo' statistics are collected. Use
166 'all' to collect all possible statistics. Use '--stats=""' or
167 '--stats="none"' to disable statistics collection. If you know
168 exactly what statistics you need, specify the comma-separated
169 list of statistics to collect. For example, use 'turbo‐
170 stat,acpower' if you need only turbostat and AC power meter sta‐
171 tistics. You can also specify the statistics you do not want to
172 be collected by pre-pending the '!' symbol. For example,
173 'all,!turbostat' would mean: collect all the statistics sup‐
174 ported by the SUT, except for 'turbostat'. Use the
175 '--list-stats' option to get more information about available
176 statistics. By default, only 'sysinfo' statistics are collected.
177
178
179 --stats-intervals STATS_INTERVALS
180 The intervals for statistics. Statistics collection is based on
181 doing periodic snapshots of data. For example, by default the
182 'acpower' statistics collector reads SUT power consumption for
183 the last second every second, and 'turbostat' default interval
184 is 5 seconds. Use
185
186
187 --report
188
189
191 usage: stats-collect report [-h] [-q] [-d] [-o OUTDIR] [--reportids RE‐
192 PORTIDS] respaths [respaths ...]
193
194 Create an HTML report for one or multiple test results.
195
196
197 respaths
198 One or multiple stats-collect test result paths.
199
200
202 -h Show this help message and exit.
203
204
205 -q Be quiet.
206
207
208 -d Print debugging information.
209
210
211 -o OUTDIR, --outdir OUTDIR
212 Path to the directory to store the report at. By default the re‐
213 port is stored in the 'stats-collect-report-<reportid>' sub-di‐
214 rectory of the test result directory. If there are multiple test
215 results, the report is stored in the current directory. The
216 '<reportid>' is report ID of stats-collect test result.
217
218
219 --reportids REPORTIDS
220 Every input raw result comes with a report ID. This report ID is
221 basically a short name for the test result, and it used in the
222 HTML report to refer to the test result. However, sometimes it
223 is helpful to temporarily override the report IDs just for the
224 HTML report, and this is what the '--reportids' option does.
225 Please, specify a comma-separated list of report IDs for every
226 input raw test result. The first report ID will be used for the
227 first raw rest result, the second report ID will be used for the
228 second raw test result, and so on. Please, refer to the '--re‐
229 portid' option description in the 'start' command for more in‐
230 formation about the report ID.
231
232
234 Artem Bityutskiy
235 dedekind1@gmail.com
236
237
239 The latest version of stats-collect may be downloaded from
240 ⟨https://github.com/intel/stats-collect⟩
241
242
243
244stats-collect 2023-08-23 STATS-COLLECT(1)