sourcefuncsize(1)
β¨ sourcefuncsize(1) β hxtools girlies rise up β¨
okay so bestie, welcome to sourcefuncsize, a lil tool from the hxtools collection π it's giving "I want to know how fat my functions are" and honestly? same.
π NAME π
sourcefuncsize β statistical analysis of code π§
πΈ SYNTAX πΈ
sourcefuncsize [-bcelvx]
π¦ DESCRIPTION π¦
sourcefuncsize shows you the (textual) size of each function. That's it, that's the whole vibe π
lowkey important: this is for C/C++ only. if you feed it your Python it's gonna be confused and so will you π
β¨ OPTIONS β¨
-bβ sort by bytes consumed. this is the default, so if you don't say anything it just... does this. iconic of it honestly π-cβ show the classification with color π because plain text is fine but rainbow text is everything-eβ report global-scope empty lines when-xis selected. yes it needs-x, they're a package deal fr fr-eeβ count the empty lines inside functions as part of the global-scope empty lines. double e, double the empty-line drama π-lβ sort by lines consumed. the byte girlies could never π-vβ shows file lines, function names, cumulative function lines and classification. the verbose queen, she does the most and we love her for it β-xβ extended classification π₯ by default you only getfunctionoroutside a function, but with-xyou also getCommentandPreprocessor. the glow-up is real β¨
π EXAMPLES π
$ sourcefuncsize <src/octl.c>
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
look at play carrying the whole file on her back π 3775 bytes, 15.22% β main character energy fr.
π SEE ALSO π
hxtools(7)β the whole hxtools family, go say hi π«Ά
that's the whole page bestie, no cap. now go profile your functions and tell me who's the biggest diva in your codebase π β¨
this page came to you from hxtools, dated 2008-02-06, and it's sourcefuncsize(1) β periodt π
π¦ where this page comes from
- debian bookworm: hxtools 20221119-1 Β· MIT
- debian trixie: hxtools 20231224-2+b2 Β· MIT
- nixos 26.05: hxtools 20251011
- nixpkgs unstable: hxtools 20251011
- opensuse-leap 16.0: hxtools-man 20231224-bp160.1.12 Β· GPL-2.0-or-later AND WTFPL
- ubuntu jammy: hxtools 20211204-1 Β· GPL-2.0-or-later OR GPL-2+3 OR WTFPL
- ubuntu noble: hxtools 20231224-2ubuntu1 Β· MIT
- ubuntu questing: hxtools 20231224-2ubuntu1
- ubuntu resolute: hxtools 20251011-1 Β· MIT
- ubuntu stonking: hxtools 20251011-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms