File: sourcefuncsize.1

package info (click to toggle)
hxtools 20251011-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,468 kB
  • sloc: ansic: 4,384; perl: 3,467; sh: 1,664; cpp: 353; makefile: 90
file content (51 lines) | stat: -rw-r--r-- 1,568 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
.TH sourcefuncsize 1 "2008-02-06" "hxtools" "hxtools"
.SH Name
sourcefuncsize \(em statistical analysis of code
.SH Syntax
\fBsourcefuncsize\fP [\fB\-bcelvx\fP]
.SH Description
sourcefuncsize shows the (textual) size of each function. For C/C++ only.
.SH Options
.TP
\fB\-b\fP
Sort by bytes consumed (default).
.TP
\fB\-c\fP
Show classification with color.
.TP
\fB\-e\fP
Report global-scope empty lines when \-x is selected.
.TP
\fB\-ee\fP
Count empty lines within functions to the global-scope empty lines.
.TP
\fB\-l\fP
Sort by lines consumed.
.TP
\fB\-v\fP
Shows file lines, function names, cumulative function lines and classification.
.TP
\fB\-x\fP
Extended classification. By default there is only "function" or
"outside a function", with \-x you also get "Comment", "Preprocessor".
.SH Examples
.nf
$ \fBsourcefuncsize <src/octl.c>\fP
 BYTES            LINES           FUNCTION
  3775( 15.22%)     112( 14.95%)  play
  3451( 13.92%)      93( 12.42%)  playrec_getopt
  3146( 12.69%)     104( 13.89%)  [Other data]
  3101( 12.50%)     103( 13.75%)  mixer_proc_ctl
  2999( 12.09%)      86( 11.48%)  record
  2047(  8.25%)      63(  8.41%)  playrec_setopt
  1982(  7.99%)      47(  6.28%)  mixer
   974(  3.93%)      30(  4.01%)  mixer_proc
   850(  3.43%)      30(  4.01%)  mixer_write_recsrc
   787(  3.17%)      25(  3.34%)  mixer_display_all
   756(  3.05%)      17(  2.27%)  main
   338(  1.36%)      15(  2.00%)  sighandler
   327(  1.32%)      13(  1.74%)  mixer_inst_dev
   267(  1.08%)      11(  1.47%)  mixer_read_recsrc
.fi
.SH See also
\fBhxtools\fP(7)