Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(506)

Side by Side Diff: third_party/lcov/man/genhtml.1

Issue 57083: lcov-1.7 into third_party for code coverage on POSIX systems.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « third_party/lcov/man/gendesc.1 ('k') | third_party/lcov/man/geninfo.1 » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 .TH genhtml 1 "LCOV 1.7" 2008\-11\-17 "User Manuals"
2 .SH NAME
3 genhtml \- Generate HTML view from LCOV coverage data files
4 .SH SYNOPSIS
5 .B genhtml
6 .RB [ \-h | \-\-help ]
7 .RB [ \-v | \-\-version ]
8 .RS 8
9 .br
10 .RB [ \-q | \-\-quiet ]
11 .RB [ \-s | \-\-show\-details ]
12 .RB [ \-f | \-\-frames ]
13 .br
14 .RB [ \-b | \-\-baseline\-file ]
15 .IR baseline\-file
16 .br
17 .RB [ \-o | \-\-output\-directory
18 .IR output\-directory ]
19 .br
20 .RB [ \-t | \-\-title
21 .IR title ]
22 .br
23 .RB [ \-d | \-\-description\-file
24 .IR description\-file ]
25 .br
26 .RB [ \-k | \-\-keep\-descriptions ]
27 .RB [ \-c | \-\-css\-file
28 .IR css\-file ]
29 .br
30 .RB [ \-p | \-\-prefix
31 .IR prefix ]
32 .RB [ \-\-no\-prefix ]
33 .br
34 .RB [ \-\-no\-source ]
35 .RB [ \-\-num\-spaces
36 .IR num ]
37 .RB [ \-\-highlight ]
38 .br
39 .RB [ \-\-legend ]
40 .RB [ \-\-html\-prolog
41 .IR prolog\-file ]
42 .br
43 .RB [ \-\-html\-epilog
44 .IR epilog\-file ]
45 .RB [ \-\-html\-extension
46 .IR extension ]
47 .br
48 .RB [ \-\-html\-gzip ]
49 .RB [ \-\-sort ]
50 .RB [ \-\-no\-sort ]
51 .br
52 .RB [ \-\-function\-coverage ]
53 .RB [ \-\-no\-function\-coverage ]
54 .br
55 .IR tracefile(s)
56 .RE
57 .SH DESCRIPTION
58 Create an HTML view of coverage data found in
59 .IR tracefile .
60 Note that
61 .I tracefile
62 may also be a list of filenames.
63
64 HTML output files are created in the current working directory unless the
65 \-\-output\-directory option is used. If
66 .I tracefile
67 ends with ".gz", it is assumed to be GZIP\-compressed and the gunzip tool
68 will be used to decompress it transparently.
69
70 Note that all source code files have to be present and readable at the
71 exact file system location they were compiled.
72
73 Use option
74 .I \--css\-file
75 to modify layout and colors of the generated HTML output. Files are
76 marked in different colors depending on the associated coverage rate. By
77 default, the coverage limits for low, medium and high coverage are set to
78 0\-15%, 15\-50% and 50\-100% percent respectively. To change these
79 values, use configuration file options
80 .IR genhtml_hi_limit " and " genhtml_med_limit .
81
82 .SH OPTIONS
83 .B \-h
84 .br
85 .B \-\-help
86 .RS
87 Print a short help text, then exit.
88
89 .RE
90 .B \-v
91 .br
92 .B \-\-version
93 .RS
94 Print version number, then exit.
95
96 .RE
97 .B \-q
98 .br
99 .B \-\-quiet
100 .RS
101 Do not print progress messages.
102
103 Suppresses all informational progress output. When this switch is enabled,
104 only error or warning messages are printed.
105
106 .RE
107 .B \-f
108 .br
109 .B \-\-frames
110 .RS
111 Use HTML frames for source code view.
112
113 If enabled, a frameset is created for each source code file, providing
114 an overview of the source code as a "clickable" image. Note that this
115 option will slow down output creation noticeably because each source
116 code character has to be inspected once. Note also that the GD.pm PERL
117 module has to be installed for this option to work (it may be obtained
118 from http://www.cpan.org).
119
120 .RE
121 .B \-s
122 .br
123 .B \-\-show\-details
124 .RS
125 Generate detailed directory view.
126
127 When this option is enabled,
128 .B genhtml
129 generates two versions of each
130 file view. One containing the standard information plus a link to a
131 "detailed" version. The latter additionally contains information about
132 which test case covered how many lines of each source file.
133
134 .RE
135 .BI "\-b " baseline\-file
136 .br
137 .BI "\-\-baseline\-file " baseline\-file
138 .RS
139 Use data in
140 .I baseline\-file
141 as coverage baseline.
142
143 The tracefile specified by
144 .I baseline\-file
145 is read and all counts found in the original
146 .I tracefile
147 are decremented by the corresponding counts in
148 .I baseline\-file
149 before creating any output.
150
151 Note that when a count for a particular line in
152 .I baseline\-file
153 is greater than the count in the
154 .IR tracefile ,
155 the result is zero.
156
157 .RE
158 .BI "\-o " output\-directory
159 .br
160 .BI "\-\-output\-directory " output\-directory
161 .RS
162 Create files in
163 .I output\-directory.
164
165 Use this option to tell
166 .B genhtml
167 to write the resulting files to a directory other than
168 the current one. If
169 .I output\-directory
170 does not exist, it will be created.
171
172 It is advisable to use this option since depending on the
173 project size, a lot of files and subdirectories may be created.
174
175 .RE
176 .BI "\-t " title
177 .br
178 .BI "\-\-title " title
179 .RS
180 Display
181 .I title
182 in header of all pages.
183
184 .I title
185 is written to the header portion of each generated HTML page to
186 identify the context in which a particular output
187 was created. By default this is the name of the tracefile.
188
189 .RE
190 .BI "\-d " description\-file
191 .br
192 .BI "\-\-description\-file " description\-file
193 .RS
194 Read test case descriptions from
195 .IR description\-file .
196
197 All test case descriptions found in
198 .I description\-file
199 and referenced in the input data file are read and written to an extra page
200 which is then incorporated into the HTML output.
201
202 The file format of
203 .IR "description\-file " is:
204
205 for each test case:
206 .RS
207 TN:<testname>
208 .br
209 TD:<test description>
210
211 .RE
212
213 Valid test case names can consist of letters, numbers and the underscore
214 character ('_').
215 .RE
216 .B \-k
217 .br
218 .B \-\-keep\-descriptions
219 .RS
220 Do not remove unused test descriptions.
221
222 Keep descriptions found in the description file even if the coverage data
223 indicates that the associated test case did not cover any lines of code.
224
225 This option can also be configured permanently using the configuration file
226 option
227 .IR genhtml_keep_descriptions .
228
229 .RE
230 .BI "\-c " css\-file
231 .br
232 .BI "\-\-css\-file " css\-file
233 .RS
234 Use external style sheet file
235 .IR css\-file .
236
237 Using this option, an extra .css file may be specified which will replace
238 the default one. This may be helpful if the default colors make your eyes want
239 to jump out of their sockets :)
240
241 This option can also be configured permanently using the configuration file
242 option
243 .IR genhtml_css_file .
244
245 .RE
246 .BI "\-p " prefix
247 .br
248 .BI "\-\-prefix " prefix
249 .RS
250 Remove
251 .I prefix
252 from all directory names.
253
254 Because lists containing long filenames are difficult to read, there is a
255 mechanism implemented that will automatically try to shorten all directory
256 names on the overview page beginning with a common prefix. By default,
257 this is done using an algorithm that tries to find the prefix which, when
258 applied, will minimize the resulting sum of characters of all directory
259 names.
260
261 Use this option to specify the prefix to be removed by yourself.
262
263 .RE
264 .B \-\-no\-prefix
265 .RS
266 Do not remove prefix from directory names.
267
268 This switch will completely disable the prefix mechanism described in the
269 previous section.
270
271 This option can also be configured permanently using the configuration file
272 option
273 .IR genhtml_no_prefix .
274
275 .RE
276 .B \-\-no\-source
277 .RS
278 Do not create source code view.
279
280 Use this switch if you don't want to get a source code view for each file.
281
282 This option can also be configured permanently using the configuration file
283 option
284 .IR genhtml_no_source .
285
286 .RE
287 .BI "\-\-num\-spaces " spaces
288 .RS
289 Replace tabs in source view with
290 .I num
291 spaces.
292
293 Default value is 8.
294
295 This option can also be configured permanently using the configuration file
296 option
297 .IR genhtml_num_spaces .
298
299 .RE
300 .B \-\-highlight
301 .RS
302 Highlight lines with converted\-only coverage data.
303
304 Use this option in conjunction with the \-\-diff option of
305 .B lcov
306 to highlight those lines which were only covered in data sets which were
307 converted from previous source code versions.
308
309 This option can also be configured permanently using the configuration file
310 option
311 .IR genhtml_highlight .
312
313 .RE
314 .B \-\-legend
315 .RS
316 Include color legend in HTML output.
317
318 Use this option to include a legend explaining the meaning of color coding
319 in the resulting HTML output.
320
321 This option can also be configured permanently using the configuration file
322 option
323 .IR genhtml_legend .
324
325 .RE
326 .BI "\-\-html\-prolog " prolog\-file
327 .RS
328 Read customized HTML prolog from
329 .IR prolog\-file .
330
331 Use this option to replace the default HTML prolog (the initial part of the
332 HTML source code leading up to and including the <body> tag) with the contents
333 of
334 .IR prolog\-file .
335 Within the prolog text, the following words will be replaced when a page is gene rated:
336
337 .B "@pagetitle@"
338 .br
339 The title of the page.
340
341 .B "@basedir@"
342 .br
343 A relative path leading to the base directory (e.g. for locating css\-files).
344
345 This option can also be configured permanently using the configuration file
346 option
347 .IR genhtml_html_prolog .
348
349 .RE
350 .BI "\-\-html\-epilog " epilog\-file
351 .RS
352 Read customized HTML epilog from
353 .IR epilog\-file .
354
355 Use this option to replace the default HTML epilog (the final part of the HTML
356 source including </body>) with the contents of
357 .IR epilog\-file .
358
359 Within the epilog text, the following words will be replaced when a page is gene rated:
360
361 .B "@basedir@"
362 .br
363 A relative path leading to the base directory (e.g. for locating css\-files).
364
365 This option can also be configured permanently using the configuration file
366 option
367 .IR genhtml_html_epilog .
368
369 .RE
370 .BI "\-\-html\-extension " extension
371 .RS
372
373 Use customized filename extension for generated HTML pages.
374
375 This option is useful in situations where different filename extensions
376 are required to render the resulting pages correctly (e.g. php). Note that
377 a '.' will be inserted between the filename and the extension specified by
378 this option.
379
380 This option can also be configured permanently using the configuration file
381 option
382 .IR genhtml_html_extension .
383 .RE
384
385 .B \-\-html\-gzip
386 .RS
387
388 Compress all generated html files with gzip and add a .htaccess file specifying
389 gzip\-encoding in the root output directory.
390
391 Use this option if you want to save space on your webserver. Requires a
392 webserver with .htaccess support and a browser with support for gzip
393 compressed html.
394
395 This option can also be configured permanently using the configuration file
396 option
397 .IR genhtml_html_gzip .
398
399 .RE
400 .B \-\-sort
401 .br
402 .B \-\-no\-sort
403 .RS
404 Specify whether to include sorted views of file and directory overviews.
405
406 Use \-\-sort to include sorted views or \-\-no\-sort to not include them.
407 Sorted views are
408 .B enabled
409 by default.
410
411 When sorted views are enabled, each overview page will contain links to
412 views of that page sorted by coverage rate.
413
414 This option can also be configured permanently using the configuration file
415 option
416 .IR genhtml_sort .
417
418 .RE
419 .B \-\-function\-coverage
420 .br
421 .B \-\-no\-function\-coverage
422 .RS
423 Specify whether to display function coverage summaries in HTML output.
424
425 Use \-\-function\-coverage to enable function coverage summaries or
426 \-\-no\-function\-coverage to disable it. Function coverage summaries are
427 .B enabled
428 by default
429
430 When function coverage summaries are enabled, each overview page will contain
431 the number of functions found and hit per file or directory, together with
432 the resulting coverage rate. In addition, each source code view will contain
433 a link to a page which lists all functions found in that file plus the
434 respective call count for those functions.
435
436 This option can also be configured permanently using the configuration file
437 option
438 .IR genhtml_function_coverage .
439
440 .RE
441 .SH FILES
442
443 .I /etc/lcovrc
444 .RS
445 The system\-wide configuration file.
446 .RE
447
448 .I ~/.lcovrc
449 .RS
450 The per\-user configuration file.
451 .RE
452
453 .SH AUTHOR
454 Peter Oberparleiter <Peter.Oberparleiter@de.ibm.com>
455
456 .SH SEE ALSO
457 .BR lcov (1),
458 .BR geninfo (1),
459 .BR genpng (1),
460 .BR gendesc (1),
461 .BR gcov (1)
OLDNEW
« no previous file with comments | « third_party/lcov/man/gendesc.1 ('k') | third_party/lcov/man/geninfo.1 » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698