ืื ื’ืœื™ืชืฆืจืคืชื™ืชืกืคืจื“ื™

ืกืžืœ OnWorks

lcov - ืžืงื•ื•ืŸ ื‘ืขื ืŸ

ื”ืคืขืœ ืืช lcov ื‘ืกืคืง ืื™ืจื•ื— ื‘ื—ื™ื ื ืฉืœ OnWorks ืขืœ ืื•ื‘ื•ื ื˜ื• ืžืงื•ื•ืŸ, ืคื“ื•ืจื” ืžืงื•ื•ืŸ, ืืžื•ืœื˜ื•ืจ ืžืงื•ื•ืŸ ืฉืœ Windows ืื• ืืžื•ืœื˜ื•ืจ ืžืงื•ื•ืŸ ืฉืœ MAC OS

ื–ื”ื• ื”ืคืงื•ื“ื” lcov ืฉื ื™ืชืŸ ืœื”ืจื™ืฅ ื‘ืกืคืง ื”ืื™ืจื•ื— ื”ื—ื™ื ืžื™ ืฉืœ OnWorks ื‘ืืžืฆืขื•ืช ืื—ืช ืžืชื—ื ื•ืช ื”ืขื‘ื•ื“ื” ื”ืžืงื•ื•ื ื•ืช ื”ืžืจื•ื‘ื•ืช ืฉืœื ื•, ื›ื’ื•ืŸ Ubuntu Online, Fedora Online, ืืžื•ืœื˜ื•ืจ ืžืงื•ื•ืŸ ืฉืœ Windows ืื• ืืžื•ืœื˜ื•ืจ ืžืงื•ื•ืŸ ืฉืœ MAC OS

ืชึธื›ึฐื ึดื™ืช:

ืฉืึตื


lcov - ื—ื–ื™ืช GCOV ื’ืจืคื™ืช

ืชึทืงืฆึดื™ืจ


lcov -c|--ืœึดืœึฐื›ึผื•ึนื“
[-d|--ืžึทื“ืจึดื™ืš ื‘ืกืคืจื™ื™ื”] [-k|---kernel-directory ื‘ืกืคืจื™ื™ื”]
[-o|--ืงื•ื‘ืฅ ืคืœื˜ ืงื•ื‘ืฅ ืขืงื‘ื•ืช] [-t|--ืฉื ื”ืžื‘ื—ืŸ ืฉื ื”ืžื‘ื—ืŸ]
[-b|--ืกืคืจื™ื™ืช ื”ื‘ืกื™ืก ื‘ืกืคืจื™ื™ื”] [-i|--ื”ืชื—ืœืชื™] [--gcov-ื›ืœื™ ื›ืœื™]
[--ื‘ื“ื™ืงืช ืกื›ื•ื] [--ืœืœื ื‘ื“ื™ืงื”] [--ืœืœื ืจืงื•ืจืกื™ื”] [-f|--ืœืขืงื•ื‘ ืื—ืจ]
[--compat-libtool] [--no-compat-libtool] [--ื”ืชืขืœื ืžืฉื’ื™ืื•ืช ืฉื’ื™ืื•ืช]
[--ืœืืจื•ื– ื—ื‘ื™ืœื”] [--ืžื”ื—ื‘ื™ืœื” ื—ื‘ื™ืœื”] [-q|--ืฉืึถืงึถื˜]
[--ืœืœื ืกืžื ื™ื] [--ื—ื™ืฆื•ื ื™] [--ืœื-ื—ื™ืฆื•ื ื™]
[--config-file ืงื•ื‘ืฅ config] [--rc ืžื™ืœื•ืช ืžืคืชื—=ืขืจืš]
[--compat ืžืฆื‘=ืžื•ืคืขืœ|ื›ื‘ื•ื™|ืื•ื˜ื•ืžื˜ื™]

lcov -z|--ืืคืก ืžื•ื ื™ื
[-d|--ืžึทื“ืจึดื™ืš ื‘ืกืคืจื™ื™ื”] [--ืœืœื ืจืงื•ืจืกื™ื”] [-f|--ืœืขืงื•ื‘ ืื—ืจ]
[-q|--ืฉืึถืงึถื˜]

lcov -l|--ืจืฉื™ืžื” ืงื•ื‘ืฅ ืขืงื‘ื•ืช
[-q|--ืฉืึถืงึถื˜] [--ืจืฉื™ืžื”-ืžืœื-ื ืชื™ื‘] [--ืœื-ืจืฉื™ืžื”-ืžืœื-ื ืชื™ื‘]
[--config-file ืงื•ื‘ืฅ config] [--rc ืžื™ืœื•ืช ืžืคืชื—=ืขืจืš]

lcov -a|--add-tracefile ืงื•ื‘ืฅ ืขืงื‘ื•ืช
[-o|--ืงื•ื‘ืฅ ืคืœื˜ ืงื•ื‘ืฅ ืขืงื‘ื•ืช] [--ื‘ื“ื™ืงืช ืกื›ื•ื] [--ืœืœื ื‘ื“ื™ืงื”]
[-q|--ืฉืึถืงึถื˜] [--config-file ืงื•ื‘ืฅ config] [--rc ืžื™ืœื•ืช ืžืคืชื—=ืขืจืš]

lcov -e|--ืœื—ืœืฅ ืงื•ื‘ืฅ ืขืงื‘ื•ืช ื“ืคื•ืก
[-o|--ืงื•ื‘ืฅ ืคืœื˜ ืงื•ื‘ืฅ ืขืงื‘ื•ืช] [--ื‘ื“ื™ืงืช ืกื›ื•ื] [--ืœืœื ื‘ื“ื™ืงื”]
[-q|--ืฉืึถืงึถื˜] [--config-file ืงื•ื‘ืฅ config] [--rc ืžื™ืœื•ืช ืžืคืชื—=ืขืจืš]

lcov -r|--ืœึฐื”ึทืกึดื™ืจ ืงื•ื‘ืฅ ืขืงื‘ื•ืช ื“ืคื•ืก
[-o|--ืงื•ื‘ืฅ ืคืœื˜ ืงื•ื‘ืฅ ืขืงื‘ื•ืช] [--ื‘ื“ื™ืงืช ืกื›ื•ื] [--ืœืœื ื‘ื“ื™ืงื”]
[-q|--ืฉืึถืงึถื˜] [--config-file ืงื•ื‘ืฅ config] [--rc ืžื™ืœื•ืช ืžืคืชื—=ืขืจืš]

lcov --ื”ื‘ื“ืœ ืงื•ื‘ืฅ ืขืงื‘ื•ืช ื”ื‘ื“ืœ
[-o|--ืงื•ื‘ืฅ ืคืœื˜ ืงื•ื‘ืฅ ืขืงื‘ื•ืช] [--ื‘ื“ื™ืงืช ืกื›ื•ื] [--ืœืœื ื‘ื“ื™ืงื”]
[--convert-filenames] [--ืœึฐื”ึดืชึฐืคึผึทืฉืึตื˜ ืขื•ืžืง] [--ื ึธืชึดื™ื‘ ื ืชื™ื‘] [-q|--ืฉืึถืงึถื˜]
[--config-file ืงื•ื‘ืฅ config] [--rc ืžื™ืœื•ืช ืžืคืชื—=ืขืจืš]

lcov --ืกื™ื›ื•ื ืงื•ื‘ืฅ ืขืงื‘ื•ืช
[-q|--ืฉืึถืงึถื˜]

lcov [-h|- ืขื–ืจื”] [-v|--ื’ึดืจึฐืกึธื”]

ืชื™ืื•ืจ


lcov ื”ื•ื ื—ื–ื™ืช ื’ืจืคื™ืช ืœื›ืœื™ ื‘ื“ื™ืงืช ื”ื›ื™ืกื•ื™ ืฉืœ GCC gcov. ื–ื” ืื•ืกืฃ ืงื•,
ื ืชื•ื ื™ ื›ื™ืกื•ื™ ืคื•ื ืงืฆื™ื•ืช ื•ืขื ืคื™ื ืขื‘ื•ืจ ืงื•ื‘ืฆื™ ืžืงื•ืจ ืžืจื•ื‘ื™ื ื•ื™ื•ืฆืจ ื“ืคื™ HTML
ื”ืžื›ื™ืœ ืืช ืงื•ื“ ื”ืžืงื•ืจ ืขื ื‘ื™ืื•ืจ ืขื ืžื™ื“ืข ื›ื™ืกื•ื™. ื–ื” ื’ื ืžื•ืกื™ืฃ ืกืงื™ืจื” ื›ืœืœื™ืช
ื“ืคื™ื ืœื ื™ื•ื•ื˜ ืงืœ ื‘ืชื•ืš ืžื‘ื ื” ื”ืงื•ื‘ืฅ.

ื”ืฉืชืžืฉ lcov ืœืืกื•ืฃ ื ืชื•ื ื™ ื›ื™ืกื•ื™ ื• genhtml ืœื™ืฆื™ืจืช ื“ืคื™ HTML. ื ืชื•ื ื™ ื›ื™ืกื•ื™ ื™ื›ื•ืœื™ื
ืื• ืฉื™ื™ืืกืคื• ืžืงืจื ืœ ืœื™ื ื•ืงืก ื”ืคื•ืขืœ ื›ืขืช ืื• ืžืžืจื—ื‘ ืžืฉืชืžืฉ
ื™ื™ืฉื•ื. ืœืฉื ื›ืš, ืขืœื™ืš ืœื‘ืฆืข ืืช ืฉืœื‘ื™ ื”ื”ื›ื ื” ื”ื‘ืื™ื:

ืขื‘ื•ืจ ื›ื™ืกื•ื™ ืœื™ื‘ืช ืœื™ื ื•ืงืก:
ืขืงื•ื‘ ืื—ืจ ื”ื•ืจืื•ืช ื”ื”ื’ื“ืจื” ืขื‘ื•ืจ ืชืฉืชื™ืช gcov-kernel:
http://ltp.sourceforge.net/coverage/gcov.php

ืœื›ื™ืกื•ื™ ื™ื™ืฉื•ืžื™ ืฉื˜ื— ืžืฉืชืžืฉ:
ื”ื™ื“ื•ืจ ื”ืืคืœื™ืงืฆื™ื” ืขื GCC ื‘ืืžืฆืขื•ืช ื”ืืคืฉืจื•ื™ื•ืช "-fprofile-arcs" ื•
"ื”ื›ื™ืกื•ื™ ื”ื›ื™ ื’ื‘ื•ื”".

ืฉื™ื ืœื‘ ืฉื“ืฃ ืื“ื ื–ื” ืžืชื™ื™ื—ืก ืœืคื•ืจืžื˜ ื”ืคืœื˜ ืฉืœ lcov ื‘ืชื•ืจ "ืงื•ื‘ืฅ ืžื™ื“ืข" ืื•
"tracefile" ื•ื›ื™ ื”ืคืœื˜ ืฉืœ GCOV ื ืงืจื ".da file".

ื›ืžื• ื›ืŸ, ืฉื™ืžื• ืœื‘ ื›ื™ ื‘ืขืช ื”ื“ืคืกืช ืื—ื•ื–ื™ ื”ื“ืคืกื”, 0% ื•-100% ืžื•ื“ืคืกื™ื ืจืง ื›ืืฉืจ ื”ืขืจื›ื™ื ื”ื
ื‘ื“ื™ื•ืง 0% ื•-100% ื‘ื”ืชืืžื”. ืขืจื›ื™ื ืื—ืจื™ื ืฉื™ืขื•ื’ืœื• ื‘ื“ืจืš ื›ืœืœ ืœ-0%
ืื• 100% ืžื•ื“ืคืกื™ื ื‘ืžืงื•ื ื–ืืช ื›ืขืจืš ื”ืœื-ื’ื‘ื•ืœ ื”ืงืจื•ื‘ ื‘ื™ื•ืชืจ. ื”ืชื ื”ื’ื•ืช ื–ื• ื”ื™ื ื‘ื”ืชืื
ืขื ื–ื” ืฉืœ gcov(1) ื›ืœื™.

ืืคืฉืจื•ื™ื•ืช


-a ืงื•ื‘ืฅ ืขืงื‘ื•ืช
--add-tracefile ืงื•ื‘ืฅ ืขืงื‘ื•ืช
ื”ื•ืกืฃ ืชื•ื›ืŸ ืฉืœ ืงื•ื‘ืฅ ืขืงื‘ื•ืช.

ืฆื™ื™ืŸ ืžืกืคืจ ืงื•ื‘ืฆื™ ืžืขืงื‘ ื‘ืืžืฆืขื•ืช ื”ืžืชื’ -a ืœืฉื™ืœื•ื‘ ื ืชื•ื ื™ ื”ื›ื™ืกื•ื™
ื”ื›ืœื•ืœื™ื ื‘ืงื‘ืฆื™ื ืืœื” ืขืœ ื™ื“ื™ ื”ื•ืกืคืช ืกืคื™ืจื•ืช ื‘ื™ืฆื•ืข ืขื‘ื•ืจ ื‘ื“ื™ืงืช ื”ืชืืžื” ื•
ืฉื™ืœื•ื‘ื™ ืฉืžื•ืช ืงื‘ืฆื™ื.

ื”ืชื•ืฆืื” ืฉืœ ืคืขื•ืœืช ื”ื”ื•ืกืคื” ืชื™ื›ืชื‘ ืœ-stdout ืื• ืœ-tracefile
ืžืฆื•ื™ืŸ ืขื -o.

ื ื™ืชืŸ ืœืฆื™ื™ืŸ ืจืง ืื—ื“ ืž-z, -c, -a, -e, -r, -l, --diff ืื• --summary ื‘-
ื”ื–ืžืŸ.

-b ื‘ืกืคืจื™ื™ื”
--ืกืคืจื™ื™ืช ื”ื‘ืกื™ืก ื‘ืกืคืจื™ื™ื”
ื”ืฉืชืžืฉ ื‘ืกืคืจื™ื™ื” ื›ืกืคืจื™ื™ืช ื‘ืกื™ืก ืขื‘ื•ืจ ื ืชื™ื‘ื™ื ื™ื—ืกื™ื™ื.

ื”ืฉืชืžืฉ ื‘ืืคืฉืจื•ืช ื–ื• ื›ื“ื™ ืœืฆื™ื™ืŸ ืืช ืกืคืจื™ื™ืช ื”ื‘ืกื™ืก ืฉืœ ืกื‘ื™ื‘ืช ื‘ื ื™ื™ื” ื›ืืฉืจ lcov
ืžื™ื™ืฆืจ ื”ื•ื“ืขื•ืช ืฉื’ื™ืื” ื›ืžื•:

ืฉื’ื™ืื”: ืœื ื ื™ืชืŸ ื”ื™ื” ืœืงืจื•ื ืืช ืงื•ื‘ืฅ ื”ืžืงื•ืจ
/home/user/project/subdir1/subdir2/subdir1/subdir2/file.c

ื‘ื“ื•ื’ืžื” ื–ื•, ื”ืฉืชืžืฉ ื‘-/home/user/project ื‘ืชื•ืจ ืกืคืจื™ื™ืช ื‘ืกื™ืก.

ืืคืฉืจื•ืช ื–ื• ื ื“ืจืฉืช ื‘ืขืช ืฉื™ืžื•ืฉ ื‘-lcov ื‘ืคืจื•ื™ืงื˜ื™ื ืฉื ื‘ื ื• ืขื libtool ืื• ื“ื•ืžื”
ืœื‘ื ื•ืช ืกื‘ื™ื‘ื•ืช ืฉืขื•ื‘ื“ื•ืช ืขื ืกืคืจื™ื™ืช ื‘ืกื™ืก, ื›ืœื•ืžืจ ืกื‘ื™ื‘ื•ืช, ืฉื‘ื”ืŸ
ืกืคืจื™ื™ืช ื”ืขื‘ื•ื“ื” ื”ื ื•ื›ื—ื™ืช ื‘ืขืช ื”ืคืขืœืช ื”ืžื”ื“ืจ ืื™ื ื” ืื•ืชื” ืกืคืจื™ื™ื”
ืฉื‘ื• ื ืžืฆื ืงื•ื‘ืฅ ืงื•ื“ ื”ืžืงื•ืจ.

ืฉื™ื ืœื‘ ืฉื”ืืคืฉืจื•ืช ื”ื–ื• ืœื ืชืขื‘ื•ื“ ื‘ืกื‘ื™ื‘ื•ืช ืฉื‘ื”ืŸ ืžืกืคืจ ืกืคืจื™ื•ืช ื‘ืกื™ืก
ืžืฉื•ืžืฉื™ื. ื‘ืžืงืจื” ื–ื” ื”ืฉืชืžืฉ ื‘ื”ื’ื“ืจืช ืงื•ื‘ืฅ ื”ืชืฆื•ืจื” geninfo_auto_base=1 (ืจืื”
lcovrc(5)).

-c
--ืœึดืœึฐื›ึผื•ึนื“
ืœื›ื™ื“ืช ื ืชื•ื ื™ ื›ื™ืกื•ื™.

ื›ื‘ืจื™ืจืช ืžื—ื“ืœ ืœื•ื›ื“ืช ืืช ืกืคื™ืจื•ืช ื”ื‘ื™ืฆื•ืข ื”ื ื•ื›ื—ื™ื•ืช ืฉืœ ื”ืœื™ื‘ื” ื•ื›ื•ืชื‘ืช ืืช ื”ืžืชืงื‘ืœื•ืช
ื ืชื•ื ื™ ื›ื™ืกื•ื™ ืœืคืœื˜ ื”ืกื˜ื ื“ืจื˜ื™. ื”ืฉืชืžืฉ ื‘ืืคืฉืจื•ืช --directory ื›ื“ื™ ืœืœื›ื•ื“ ืกืคื™ืจื•ืช
ืขื‘ื•ืจ ืชื•ื›ื ื™ืช ืžืจื—ื‘ ืžืฉืชืžืฉ.

ื”ืชื•ืฆืื” ืฉืœ ืคืขื•ืœืช ื”ืœื›ื™ื“ื” ืชื™ื›ืชื‘ ืœ-stdout ืื• ืœ-tracefile
ืžืฆื•ื™ืŸ ืขื -o.

ื ื™ืชืŸ ืœืฆื™ื™ืŸ ืจืง ืื—ื“ ืž-z, -c, -a, -e, -r, -l, --diff ืื• --summary ื‘-
ื”ื–ืžืŸ.

--ื‘ื“ื™ืงืช ืกื›ื•ื
--ืœืœื ื‘ื“ื™ืงื”
ืฆื™ื™ืŸ ืื ืœื™ืฆื•ืจ ื ืชื•ื ื™ ื‘ื“ื™ืงื” ื‘ืขืช ื›ืชื™ื‘ืช ืงื‘ืฆื™ ืžืขืงื‘.

ื”ืฉืชืžืฉ ื‘--checksum ื›ื“ื™ ืœืืคืฉืจ ื™ืฆื™ืจืช ืกื›ื•ื ื‘ื“ื™ืงื” ืื• ื‘--no-checksum ื›ื“ื™ ืœื”ืฉื‘ื™ืช ืื•ืชื•.
ื™ืฆื™ืจืช ืกื›ื•ื ืฆ'ืง ื”ื•ื ื ื›ื” ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.

ื›ืืฉืจ ื™ืฆื™ืจืช ืกื›ื•ื ื‘ื“ื™ืงื” ืžื•ืคืขืœืช, ื™ื•ื•ืฆืจ ืกื›ื•ื ื‘ื“ื™ืงื” ืขื‘ื•ืจ ื›ืœ ืžืงื•ืจ
ืฉื•ืจืช ืงื•ื“ ื•ืžืื•ื—ืกื ืช ื™ื—ื“ ืขื ื ืชื•ื ื™ ื”ื›ื™ืกื•ื™. ืกื›ื•ื ื‘ื“ื™ืงื” ื–ื” ื™ืฉืžืฉ
ืœืžื ื•ืข ื ื™ืกื™ื•ื ื•ืช ืœืฉืœื‘ ื ืชื•ื ื™ ื›ื™ืกื•ื™ ืžื’ืจืกืื•ืช ืงื•ื“ ืžืงื•ืจ ืฉื•ื ื•ืช.

ืื ืื™ื ืš ืขื•ื‘ื“ ืขื ื’ืจืกืื•ืช ืงื•ื“ ืžืงื•ืจ ืฉื•ื ื•ืช, ื”ืฉื‘ืช ืืช ื”ืืคืฉืจื•ืช ื”ื–ื• ื›ื“ื™ ืœื”ืื™ืฅ
ืœื”ื’ื‘ื™ืจ ืืช ืขื™ื‘ื•ื“ ื ืชื•ื ื™ ื”ื›ื™ืกื•ื™ ื•ืœื”ืงื˜ื™ืŸ ืืช ื’ื•ื“ืœ ืงื‘ืฆื™ ื”ืขืงื‘ื•ืช.

--compat ืžืฆื‘=ืขืจืš[,ืžืฆื‘=ืขืจืš,...]
ื”ื’ื“ืจ ืžืฆื‘ ืชืื™ืžื•ืช.

ื”ืฉืชืžืฉ ื‘--compat ื›ื“ื™ ืœืฆื™ื™ืŸ ืฉ-lcov ืฆืจื™ืš ืœืืคืฉืจ ืžืฆื‘ ืชืื™ืžื•ืช ืื—ื“ ืื• ื™ื•ืชืจ
ื‘ืขืช ืœื›ื™ื“ืช ื ืชื•ื ื™ ื›ื™ืกื•ื™. ืืชื” ื™ื›ื•ืœ ืœืกืคืง ืจืฉื™ืžื” ืžื•ืคืจื“ืช ื‘ืคืกื™ืงื™ื ืฉืœ mode=value
ื–ื•ื’ื•ืช ื›ื“ื™ ืœืฆื™ื™ืŸ ืืช ื”ืขืจื›ื™ื ืขื‘ื•ืจ ืžืฆื‘ื™ื ืžืจื•ื‘ื™ื.

ืชืงืฃ ืขืจื›ื™ื ื”ื:

on
ื”ืคืขืœ ืžืฆื‘ ืชืื™ืžื•ืช.
ื›ื‘ื•ื™
ื”ืฉื‘ืช ืืช ืžืฆื‘ ื”ืชืื™ืžื•ืช.
ื”ืžื›ื•ื ื™ืช
ื”ื—ืœ ื–ื™ื”ื•ื™ ืื•ื˜ื•ืžื˜ื™ ื›ื“ื™ ืœืงื‘ื•ืข ืื ื ื“ืจืฉ ืžืฆื‘ ืชืื™ืžื•ืช. ื”ืขืจื”
ืฉื–ื™ื”ื•ื™ ืื•ื˜ื•ืžื˜ื™ ืื™ื ื• ื–ืžื™ืŸ ืขื‘ื•ืจ ื›ืœ ืžืฆื‘ื™ ื”ืชืื™ืžื•ืช.

ืื ืœื ืฆื•ื™ืŸ ืขืจืš, ื”ื”ื ื—ื” 'ืžื•ืคืขืœ' ื”ื™ื ืขืจืš ื‘ืจื™ืจืช ื”ืžื—ื“ืœ.

ืชืงืฃ ืžืฆื‘ื™ ื”ื:

libtool
ื”ืคืขืœ ืžืฆื‘ ื–ื” ืื ืืชื” ืœื•ื›ื“ ื ืชื•ื ื™ ื›ื™ืกื•ื™ ืขื‘ื•ืจ ืคืจื•ื™ืงื˜ ืฉื”ื™ื”
ื ื‘ื ื” ื‘ืืžืฆืขื•ืช ืžื ื’ื ื•ืŸ libtool. ืจืื” ื’ื --compat-libtool.

ืขืจืš ื‘ืจื™ืจืช ื”ืžื—ื“ืœ ืขื‘ื•ืจ ื”ื’ื“ืจื” ื–ื• ื”ื•ื 'ืžื•ืคืขืœ'.

ืคื˜ื™ืฉ
ื”ืคืขืœ ืžืฆื‘ ื–ื” ืื ืืชื” ืœื•ื›ื“ ื ืชื•ื ื™ ื›ื™ืกื•ื™ ืขื‘ื•ืจ ืคืจื•ื™ืงื˜ ืฉื”ื™ื”
ื ื‘ื ื” ื‘ืืžืฆืขื•ืช ื’ืจืกื” ืฉืœ GCC 3.3 ื”ืžื›ื™ืœื” ืฉื™ื ื•ื™ (ืชื™ืงื•ืŸ ืคื˜ื™ืฉ)
ืฉืœ ื’ืจืกืื•ืช GCC ืžืื•ื—ืจื•ืช ื™ื•ืชืจ. ืืชื” ื™ื›ื•ืœ ืœื–ื”ื•ืช GCC 3.3 ืฉื•ื ื” ืขืœ ื™ื“ื™ ืกื™ืžื•ืŸ ื”-
ื‘ื ื™ื™ืช ืกืคืจื™ื™ื” ืฉืœ ื”ืคืจื•ื™ืงื˜ ืฉืœืš ืขื‘ื•ืจ ืงื‘ืฆื™ื ื”ืžืกืชื™ื™ืžื™ื ื‘ืกื™ื•ืžืช '.bbg'.
ื’ืจืกืื•ืช ืœืœื ืฉื™ื ื•ื™ ืฉืœ GCC 3.3 ืฉืžื•ืช ืงื‘ืฆื™ื ืืœื” '.bb'.

ืขืจืš ื‘ืจื™ืจืช ื”ืžื—ื“ืœ ืขื‘ื•ืจ ื”ื’ื“ืจื” ื–ื• ื”ื•ื 'ืื•ื˜ื•ืžื˜ื™'.

split_crc
ื”ืคืขืœ ืžืฆื‘ ื–ื” ืื ืืชื” ืœื•ื›ื“ ื ืชื•ื ื™ ื›ื™ืกื•ื™ ืขื‘ื•ืจ ืคืจื•ื™ืงื˜ ืฉื”ื™ื”
ื ื‘ื ื” ื‘ืืžืฆืขื•ืช ื’ืจืกื” ืฉืœ GCC 4.6 ื”ืžื›ื™ืœื” ืฉื™ื ื•ื™ (ืคื™ืฆื•ืœ
ืกื›ื•ืžื™ ื‘ื“ื™ืงืช ืคื•ื ืงืฆื™ื•ืช) ืฉืœ ื’ืจืกืื•ืช GCC ืžืื•ื—ืจื•ืช ื™ื•ืชืจ. ื”ื•ื“ืขื•ืช ืฉื’ื™ืื” ืื•ืคื™ื™ื ื™ื•ืช ื›ืืฉืจ
ื”ื”ืคืขืœื” ืฉืœ LCOV ืขืœ ื ืชื•ื ื™ ื›ื™ืกื•ื™ ื”ืžื™ื•ืฆืจื™ื ืขืœ ื™ื“ื™ ื’ืจืกืื•ืช GCC ื›ืืœื” ืื™ื ืŸ ืžื—ื•ืฅ
memory' ื•-'ื”ื’ื™ืข ืœืกื•ืฃ ื‘ืœืชื™ ืฆืคื•ื™ ืฉืœ ื”ืงื•ื‘ืฅ'.

ืขืจืš ื‘ืจื™ืจืช ื”ืžื—ื“ืœ ืขื‘ื•ืจ ื”ื’ื“ืจื” ื–ื• ื”ื•ื 'ืื•ื˜ื•ืžื˜ื™'

--compat-libtool
--no-compat-libtool
ืฆื™ื™ืŸ ืื ืœื”ืคืขื™ืœ ืืช ืžืฆื‘ ืชืื™ืžื•ืช libtool.

ื”ืฉืชืžืฉ ื‘--compat-libtool ื›ื“ื™ ืœื”ืคืขื™ืœ ืžืฆื‘ ืชืื™ืžื•ืช ืฉืœ libtool ืื• ื‘--no-compat-libtool ื›ื“ื™
ืœื”ืฉื‘ื™ืช ืื•ืชื•. ืžืฆื‘ ื”ืชืื™ืžื•ืช ืฉืœ libtool ื”ื•ื ืžื•ืคืขืœ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.

ื›ืืฉืจ ืžืฆื‘ ืชืื™ืžื•ืช libtool ืžื•ืคืขืœ, lcov ื™ื ื™ื— ืฉืงื•ื“ ื”ืžืงื•ืจ
ื”ืžืชื™ื™ื—ืก ืœืงื•ื‘ืฅ .da ืฉื ืžืฆื ื‘ืกืคืจื™ื™ื” ื‘ืฉื ".libs" ื ื™ืชืŸ ืœืžืฆื•ื ื‘ื•
ืกืคืจื™ื™ืช ื”ื•ืจื™ื.

ืื ื™ืฉ ืœืš ืกืคืจื™ื•ืช ื‘ืฉื ".libs" ื‘ืกื‘ื™ื‘ืช ื”ื‘ื ื™ื™ื” ืฉืœืš ืื‘ืœ ืืœ ืชืฉืชืžืฉ
libtool, ื”ืฉื‘ืช ืืคืฉืจื•ืช ื–ื• ื›ื“ื™ ืœืžื ื•ืข ื‘ืขื™ื•ืช ื‘ืขืช ืœื›ื™ื“ืช ื ืชื•ื ื™ ื›ื™ืกื•ื™.

--config-file ืงื•ื‘ืฅ config
ืฆื™ื™ืŸ ืงื•ื‘ืฅ ืชืฆื•ืจื” ืœืฉื™ืžื•ืฉ.

ื›ืืฉืจ ืืคืฉืจื•ืช ื–ื• ืžืฆื•ื™ื ืช, ืœื ืงื•ื‘ืฅ ื”ืชืฆื•ืจื” ื›ืœืœ ื”ืžืขืจื›ืช
/etc/lcovrc, ื•ืœื ืงื•ื‘ืฅ ื”ืชืฆื•ืจื” ืœื›ืœ ืžืฉืชืžืฉ ~/.lcovrc ื ืงืจื.

ืืคืฉืจื•ืช ื–ื• ืขืฉื•ื™ื” ืœื”ื™ื•ืช ืฉื™ืžื•ืฉื™ืช ื›ืืฉืจ ื™ืฉ ืฆื•ืจืš ืœื”ืคืขื™ืœ ืžืกืคืจ ืžื•ืคืขื™ื ืฉืœ lcov
ืขื ืืคืฉืจื•ื™ื•ืช ืฉื•ื ื•ืช ืฉืœ ืงื‘ืฆื™ ืชืฆื•ืจื” ื‘ืžืงื‘ื™ืœ.

--convert-filenames
ื”ืžืจ ืฉืžื•ืช ืงื‘ืฆื™ื ื‘ืขืช ื”ื—ืœืช diff.

ื”ืฉืชืžืฉ ื‘ืืคืฉืจื•ืช ื–ื• ื™ื—ื“ ืขื --diff ื›ื“ื™ ืœืฉื ื•ืช ืืช ืฉืžื•ืช ื”ืงื‘ืฆื™ื ืฉืœ ื ืชื•ื ื™ื ืžืขื•ื‘ื“ื™ื
ืงื•ื‘ืข ื‘ื”ืชืื ืœื ืชื•ื ื™ื ืฉืกื™ืคืง ื”-diff.

--ื”ื‘ื“ืœ ืงื•ื‘ืฅ ืขืงื‘ื•ืช difffile
ื”ืžืจืช ื ืชื•ื ื™ ื›ื™ืกื•ื™ ื‘ ืงื•ื‘ืฅ ืขืงื‘ื•ืช ื‘ืืžืฆืขื•ืช ืงื•ื‘ืฅ ืงื•ื“ ื”ืžืงื•ืจ difffile.

ื”ืฉืชืžืฉ ื‘ืืคืฉืจื•ืช ื–ื• ืื ื‘ืจืฆื•ื ืš ืœืžื–ื’ ื ืชื•ื ื™ ื›ื™ืกื•ื™ ืžืงื•ื“ ืžืงื•ืจ ืื—ืจ
ืจืžื•ืช ืฉืœ ืชื•ื›ื ื™ืช, ืœืžืฉืœ ื›ืืฉืจ ื™ืฉ ืœืš ื ืชื•ื ื™ื ืฉื ืœืงื—ื• ืžื’ืจืกื” ื™ืฉื ื” ื™ื•ืชืจ ื•ืืชื” ืจื•ืฆื”
ืœืฉืœื‘ ืื•ืชื• ืขื ื ืชื•ื ื™ื ืžื’ืจืกื” ืขื“ื›ื ื™ืช ื™ื•ืชืจ. lcov ื™ื ืกื” ืœืžืคื•ืช ืืช ื”ืžืงื•ืจ
ืงื•ื•ื™ ืงื•ื“ ื‘ื™ืŸ ื’ืจืกืื•ืช ืืœื” ื•ื”ืชืืžืช ื ืชื•ื ื™ ื”ื›ื™ืกื•ื™ ื‘ื”ืชืืžื”.
difffile ืฆืจื™ืš ืœื”ื™ื•ืช ื‘ืคื•ืจืžื˜ ืžืื•ื—ื“, ื›ืœื•ืžืจ ื™ืฉ ืœื™ืฆื•ืจ ืื•ืชื• ื‘ืืžืฆืขื•ืช ื”-"-u"
ืื•ืคืฆื™ื” ืฉืœ ื”ื‘ื“ืœ ื›ืœื™.

ืฉื™ืžื• ืœื‘ ื›ื™ ืฉื•ืจื•ืช ืฉืื™ื ืŸ ืงื™ื™ืžื•ืช ื‘ื’ืจืกื” ื”ื™ืฉื ื” ืœื ื™ื™ืกืคืจื• ื›
ืžื›ืฉื•ืจ, ืœื›ืŸ ืงื‘ืฆื™ ืžืขืงื‘ ื”ื ื•ื‘ืขื™ื ืžืคืขื•ืœื” ื–ื• ืœื ืืžื•ืจื™ื ืœื”ื™ื•ืช
ืคื•ืจืฉ ื‘ื ืคืจื“ ืืš ื™ื—ื“ ืขื ืงื‘ืฆื™ ืขืงื‘ื•ืช ืื—ืจื™ื ืฉื ืœืงื—ื• ืžื”ื—ื“ืฉ ื™ื•ืชืจ
ื’ึดืจึฐืกึธื”. ื–ื›ื•ืจ ื’ื ื›ื™ ื™ืฉ ืœื”ืฉืชืžืฉ ื‘ื ืชื•ื ื™ ื›ื™ืกื•ื™ ืฉื”ื•ืžืจื• ืจืง ืขื‘ื•ืจ
ืžื˜ืจื•ืช ืกืงื™ืจื” ืžื›ื™ื•ื•ืŸ ืฉื”ืชื”ืœื™ืš ืขืฆืžื• ืžืฆื™ื’ ืื•ื‘ื“ืŸ ื“ื™ื•ืง.

ื”ืชื•ืฆืื” ืฉืœ ืคืขื•ืœืช ื”-diff ืชื™ื›ืชื‘ ืœ-stdout ืื• ืœ-tracefile
ืžืฆื•ื™ืŸ ืขื -o.

ื ื™ืชืŸ ืœืฆื™ื™ืŸ ืจืง ืื—ื“ ืž-z, -c, -a, -e, -r, -l, --diff ืื• --summary ื‘-
ื”ื–ืžืŸ.

-d ื‘ืกืคืจื™ื™ื”
--ืžึทื“ืจึดื™ืš ื‘ืกืคืจื™ื™ื”
ื”ืฉืชืžืฉ ื‘ืงื‘ืฆื™ .da ื‘ ื‘ืกืคืจื™ื™ื” ื‘ืžืงื•ื ื’ืจืขื™ืŸ.

ืื ื‘ืจืฆื•ื ืš ืœืขื‘ื•ื“ ืขืœ ื ืชื•ื ื™ ื›ื™ืกื•ื™ ืขื‘ื•ืจ ืชื•ื›ื ื™ืช ืžืจื—ื‘ ืžืฉืชืžืฉ, ื”ืฉืชืžืฉ ื‘ืืคืฉืจื•ืช ื–ื• ื›ื“ื™
ืฆื™ื™ืŸ ืืช ื”ืžื™ืงื•ื ืฉื‘ื• ื”ืชื•ื›ื ื™ืช ื”ื™ื“ื•ืจ (ืฉื ืงื‘ืฆื™ ื”ืžื•ื ื”
ื”ืžืกืชื™ื™ื ื‘-.da ื™ืื•ื—ืกืŸ).

ืฉื™ื ืœื‘ ืฉืืชื” ื™ื›ื•ืœ ืœืฆื™ื™ืŸ ืืคืฉืจื•ืช ื–ื• ื™ื•ืชืจ ืžืคืขื ืื—ืช.

--ื—ื™ืฆื•ื ื™
--ืœื-ื—ื™ืฆื•ื ื™
ืฆื™ื™ืŸ ืื ืœืœื›ื•ื“ ื ืชื•ื ื™ ื›ื™ืกื•ื™ ืขื‘ื•ืจ ืงื•ื‘ืฆื™ ืžืงื•ืจ ื—ื™ืฆื•ื ื™ื™ื.

ืงื‘ืฆื™ ืžืงื•ืจ ื—ื™ืฆื•ื ื™ื™ื ื”ื ืงื‘ืฆื™ื ืฉืื™ื ื ื ืžืฆืื™ื ื‘ืื—ืช ืžื”ืกืคืจื™ื•ืช
ืฉืฆื•ื™ืŸ ืขืœ ื™ื“ื™ --directory ืื• --base-directory. ื”ืฉืชืžืฉ ื‘--external ื›ื“ื™ ืœื›ืœื•ืœ ื—ื™ืฆื•ื ื™
ืงื‘ืฆื™ ืžืงื•ืจ ืชื•ืš ืœื›ื™ื“ืช ื ืชื•ื ื™ ื›ื™ืกื•ื™ ืื• --no-external ื›ื“ื™ ืœื”ืชืขืœื ืžื ืชื•ื ื™ื ืืœื”.

ื ืชื•ื ื™ื ืขื‘ื•ืจ ืงื‘ืฆื™ ืžืงื•ืจ ื—ื™ืฆื•ื ื™ื™ื ื”ื ื›ืœื•ืœ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.

-e ืงื•ื‘ืฅ ืขืงื‘ื•ืช ื“ืคื•ืก
--ืœื—ืœืฅ ืงื•ื‘ืฅ ืขืงื‘ื•ืช ื“ืคื•ืก
ื—ืœืฅ ื ืชื•ื ื™ื ืž ืงื•ื‘ืฅ ืขืงื‘ื•ืช.

ื”ืฉืชืžืฉ ื‘ืžืชื’ ื–ื” ืื ื‘ืจืฆื•ื ืš ืœื—ืœืฅ ื ืชื•ื ื™ ื›ื™ืกื•ื™ ืจืง ืขื‘ื•ืจ ืงื‘ื•ืฆื” ืžืกื•ื™ืžืช ืฉืœ
ืงื‘ืฆื™ื ืžืชื•ืš ืงื•ื‘ืฅ ืขืงื‘ื•ืช. ืคืจืžื˜ืจื™ื ื ื•ืกืคื™ื ืฉืœ ืฉื•ืจืช ื”ืคืงื•ื“ื” ื™ืชืคืจืฉื• ื›
ื“ืคื•ืกื™ ืชื•ื•ื™ื ื›ืœืœื™ื™ื ืฉืœ ืžืขื˜ืคืช (ืฉื™ื ืœื‘ ืฉื™ื™ืชื›ืŸ ืฉื™ื”ื™ื” ืฆื•ืจืš ืœื”ืžืœื˜ ืื•ืชื ื‘ื”ืชืื
ืœืžื ื•ืข ืžื”ืงืœื™ืคื” ืœื”ืจื—ื™ื‘ ืื•ืชื ืชื—ื™ืœื”). ื›ืœ ื”ื–ื ืช ืงื•ื‘ืฅ ื‘ ืงื•ื‘ืฅ ืขืงื‘ื•ืช ืืฉืจ
ืชื•ืื ืœืคื—ื•ืช ืื—ื“ ืžื”ื“ืคื•ืกื™ื ื”ืืœื” ื™ื—ื•ืœืฅ.

ื”ืชื•ืฆืื” ืฉืœ ืคืขื•ืœืช ื”ื—ื™ืœื•ืฅ ืชื™ื›ืชื‘ ืœ-stdout ืื• ืœ-tracefile
ืžืฆื•ื™ืŸ ืขื -o.

ื ื™ืชืŸ ืœืฆื™ื™ืŸ ืจืง ืื—ื“ ืž-z, -c, -a, -e, -r, -l, --diff ืื• --summary ื‘-
ื”ื–ืžืŸ.

-f
--ืœืขืงื•ื‘ ืื—ืจ
ืขืงื•ื‘ ืื—ืจ ืงื™ืฉื•ืจื™ื ื‘ืขืช ื—ื™ืคื•ืฉ ืงื‘ืฆื™ .da.

--ืžื”ื—ื‘ื™ืœื” ื—ื‘ื™ืœื”
ื”ืฉืชืžืฉ ื‘ืงื‘ืฆื™ .da ื‘ ื—ื‘ื™ืœื” ื‘ืžืงื•ื ืœื™ื‘ื” ืื• ืกืคืจื™ื™ื”.

ื”ืฉืชืžืฉ ื‘ืืคืฉืจื•ืช ื–ื• ืื ื™ืฉ ืœืš ืžื›ื•ื ื•ืช ื ืคืจื“ื•ืช ืœื‘ื ื™ื™ื” ื•ืœื‘ื“ื™ืงื” ื•ืืชื” ืจื•ืฆื”
ื‘ืฆืข ืืช ื™ืฆื™ืจืช ืงื•ื‘ืฅ ื”-.info ื‘ืžื—ืฉื‘ ื”-build. ืจืื” --to-package ืœืžื™ื“ืข ื ื•ืกืฃ
ืžื™ื“ืข.

--gcov-ื›ืœื™ ื›ืœื™
ืฆื™ื™ืŸ ืืช ื”ืžื™ืงื•ื ืฉืœ ื”ื›ืœื™ gcov.

-h
- ืขื–ืจื”
ื”ื“ืคืก ื˜ืงืกื˜ ืขื–ืจื” ืงืฆืจ ื•ืื– ืฆื.

--ื”ืชืขืœื ืžืฉื’ื™ืื•ืช ืฉื’ื™ืื•ืช
ืฆื™ื™ืŸ ืจืฉื™ืžื” ืฉืœ ืฉื’ื™ืื•ืช ืฉืœืื—ืจื™ื”ืŸ ืœื”ืžืฉื™ืš ื‘ืขื™ื‘ื•ื“.

ื”ืฉืชืžืฉ ื‘ืืคืฉืจื•ืช ื–ื• ื›ื“ื™ ืœืฆื™ื™ืŸ ืจืฉื™ืžื” ืฉืœ ืžื—ืœืงื” ืื—ืช ืื• ื™ื•ืชืจ ืฉืœ ืฉื’ื™ืื•ืช ืฉืœืื—ืจื™ื”ืŸ LCOV
ืฆืจื™ืš ืœื”ืžืฉื™ืš ื‘ืขื™ื‘ื•ื“ ื‘ืžืงื•ื ืœื”ืคืกื™ืง.

ืฉื’ื™ืื•ืช ื™ื›ื•ืœื” ืœื”ื™ื•ืช ืจืฉื™ืžื” ืžื•ืคืจื“ืช ื‘ืคืกื™ืงื™ื ืฉืœ ืžื™ืœื•ืช ื”ืžืคืชื— ื”ื‘ืื•ืช:

gcov: ื”ื›ืœื™ gcov ื”ื—ื–ื™ืจ ืขื ืงื•ื“ ื”ื—ื–ืจื” ืฉืื™ื ื• ืืคืก.

ืžืงื•ืจ: ืœื ื ื™ืชืŸ ืœืžืฆื•ื ืืช ืงื•ื‘ืฅ ืงื•ื“ ื”ืžืงื•ืจ ืฉืœ ืขืจื›ืช ื ืชื•ื ื™ื.

ื’ืจึธืฃ: ืงื•ื‘ืฅ ื”ื’ืจืฃ ืœื ื ืžืฆื ืื• ืฉื”ื•ื ืคื’ื•ื.

-i
--ื”ืชื—ืœืชื™
ืœื›ื™ื“ืช ื ืชื•ื ื™ ืืคืก ื›ื™ืกื•ื™ ืจืืฉื•ื ื™ื™ื.

ื”ืคืขืœ ืืช LCOV ืขื -c ื•ืืคืฉืจื•ืช ื–ื• ืขืœ ื”ืกืคืจื™ื•ืช ื”ืžื›ื™ืœื•ืช .bb, .bbg ืื• .gcno
ืงื‘ืฆื™ื ืœืคื ื™ ื”ืคืขืœืช ื›ืœ ืžืงืจื” ื‘ื“ื™ืงื”. ื”ืชื•ืฆืื” ื”ื™ื ืงื•ื‘ืฅ ื ืชื•ื ื™ ื›ื™ืกื•ื™ "ื‘ืกื™ืกื™".
ืฉืžื›ื™ืœ ืืคืก ื›ื™ืกื•ื™ ืขื‘ื•ืจ ื›ืœ ืงื• ืžื›ืฉื™ืจ. ืฉืœื‘ ืืช ืงื•ื‘ืฅ ื”ื ืชื•ื ื™ื ื”ื–ื”
(ื‘ืืžืฆืขื•ืช LCOV -a) ืขื ืงื‘ืฆื™ ื ืชื•ื ื™ ื›ื™ืกื•ื™ ืฉื ืœื›ื“ื• ืœืื—ืจ ื”ืคืขืœืช ืžื‘ื—ืŸ ื›ื“ื™ ืœื”ื‘ื˜ื™ื— ื–ืืช
ื”ืื—ื•ื– ืžืกืš ื”ืฉื•ืจื•ืช ื”ืžื›ื•ืกื•ืช ื ื›ื•ืŸ ื’ื ื›ืืฉืจ ืœื ื›ืœ ืงื•ื“ ื”ืžืงื•ืจ
ืงื‘ืฆื™ื ื ื˜ืขื ื• ื‘ืžื”ืœืš ื”ื‘ื“ื™ืงื”.

ื”ืœื™ืš ืžื•ืžืœืฅ ื‘ืขืช ืœื›ื™ื“ืช ื ืชื•ื ื™ื ืขื‘ื•ืจ ืžืงืจื” ื‘ื“ื™ืงื”:

1. ืฆื•ืจ ืงื•ื‘ืฅ ื ืชื•ื ื™ ื›ื™ืกื•ื™ ื‘ืกื™ืกื™
# lcov -c -i -d appdir -o app_base.info

2. ืœื‘ืฆืข ื‘ื“ื™ืงื”
# appdir/test

3. ืฆื•ืจ ืงื•ื‘ืฅ ื ืชื•ื ื™ ื›ื™ืกื•ื™ ื‘ื“ื™ืงื”
# lcov -c -d appdir -o app_test.info

4. ืœืฉืœื‘ ื ืชื•ื ื™ ื›ื™ืกื•ื™ ื‘ืกื™ืก ื•ื‘ื“ื™ืงื”
# lcov -a app_base.info -a app_test.info -o app_total.info

-k ืกืคืจื™ื™ืช ืžืฉื ื”
---kernel-directory ืกืคืจื™ื™ืช ืžืฉื ื”
ืœื›ื™ื“ืช ื ืชื•ื ื™ ื›ื™ืกื•ื™ ืœื™ื‘ื” ืจืง ืž ืกืคืจื™ื™ืช ืžืฉื ื”.

ื”ืฉืชืžืฉ ื‘ืืคืฉืจื•ืช ื–ื• ืื ืื™ื ืš ืจื•ืฆื” ืœืงื‘ืœ ื ืชื•ื ื™ ื›ื™ืกื•ื™ ืขื‘ื•ืจ ื›ืœ ื”ืœื™ื‘ื”, ืื‘ืœ
ืจืง ืขื‘ื•ืจ ืกืคืจื™ื•ืช ืžืฉื ื” ืกืคืฆื™ืคื™ื•ืช. ื ื™ืชืŸ ืœืฆื™ื™ืŸ ืืคืฉืจื•ืช ื–ื• ื™ื•ืชืจ ืžืคืขื ืื—ืช.

ืฉื™ื ืœื‘ ืฉื™ื™ืชื›ืŸ ืฉืชืฆื˜ืจืš ืœืฆื™ื™ืŸ ืืช ื”ื ืชื™ื‘ ื”ืžืœื ืืœ ืกืคืจื™ื™ืช ื”ืžืฉื ื” ืฉืœ ื”ืœื™ื‘ื”
ื‘ื”ืชืื ืœื’ืจืกื” ืฉืœ ืชืžื™ื›ืช ื”-gcov ื”ืœื™ื‘ื”.

-l ืงื•ื‘ืฅ ืขืงื‘ื•ืช
--ืจืฉื™ืžื” ืงื•ื‘ืฅ ืขืงื‘ื•ืช
ืจืฉื•ื ืืช ื”ืชื•ื›ืŸ ืฉืœ ืงื•ื‘ืฅ ืขืงื‘ื•ืช.

ื ื™ืชืŸ ืœืฆื™ื™ืŸ ืจืง ืื—ื“ ืž-z, -c, -a, -e, -r, -l, --diff ืื• --summary ื‘-
ื”ื–ืžืŸ.

--ืจืฉื™ืžื”-ืžืœื-ื ืชื™ื‘
--ืœื-ืจืฉื™ืžื”-ืžืœื-ื ืชื™ื‘
ืฆื™ื™ืŸ ืื ืœื”ืฆื™ื’ ื ืชื™ื‘ื™ื ืžืœืื™ื ื‘ืžื”ืœืš ืคืขื•ืœืช ื”ืจืฉื™ืžื”.

ื”ืฉืชืžืฉ ื‘--list-full-path ื›ื“ื™ ืœื”ืฆื™ื’ ื ืชื™ื‘ื™ื ืžืœืื™ื ื‘ืžื”ืœืš ืคืขื•ืœืช ืจืฉื™ืžื” ืื•
--no-list-full-path ืœื”ืฆื’ืช ื ืชื™ื‘ื™ื ืžืงื•ืฆืจื™ื. ืฉื‘ื™ืœื™ื ื”ื ืžืงื•ืฆืจ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.

--ืœืœื ืกืžื ื™ื
ื”ืฉืชืžืฉ ื‘ืืคืฉืจื•ืช ื–ื• ืื ื‘ืจืฆื•ื ืš ืœืงื‘ืœ ื ืชื•ื ื™ ื›ื™ืกื•ื™ ืœืœื ืงืฉืจ ืœื”ื—ืจื’ื”
ืกืžื ื™ื ื‘ืงื•ื‘ืฅ ืงื•ื“ ื”ืžืงื•ืจ. ืœึดืจึฐืื•ึนืช geninfo (1) ืœืคืจื˜ื™ื ืขืœ ืกืžื ื™ ืื™ ื”ื›ืœืœื”.

--ืœืœื ืจืงื•ืจืกื™ื”
ื”ืฉืชืžืฉ ื‘ืืคืฉืจื•ืช ื–ื• ืื ื‘ืจืฆื•ื ืš ืœืงื‘ืœ ื ืชื•ื ื™ ื›ื™ืกื•ื™ ืขื‘ื•ืจ ื”ืกืคืจื™ื™ื” ืฉืฆื•ื™ื ื” ื‘ืœื‘ื“
ืœืœื ืขื™ื‘ื•ื“ ืกืคืจื™ื•ืช ืžืฉื ื”.

-o ืงื•ื‘ืฅ ืขืงื‘ื•ืช
--ืงื•ื‘ืฅ ืคืœื˜ ืงื•ื‘ืฅ ืขืงื‘ื•ืช
ื›ืชื•ื‘ ื ืชื•ื ื™ื ืœ ืงื•ื‘ืฅ ืขืงื‘ื•ืช ื‘ืžืงื•ื stdout.

ืฆื™ื™ืŸ "-" ื›ืฉื ืงื•ื‘ืฅ ื›ื“ื™ ืœื”ืฉืชืžืฉ ื‘ืคืœื˜ ื”ืกื˜ื ื“ืจื˜ื™.

ืœืคื™ ื”ืžื•ืกื›ืžื”, ืงื‘ืฆื™ ื ืชื•ื ื™ ื›ื™ืกื•ื™ ืฉื ื•ืฆืจื• ืขืœ ื™ื“ื™ LCOV ื ืงืจืื™ื "ืงื‘ืฆื™ ืžืขืงื‘" ื•
ืฆืจื™ื›ื” ืœื”ื™ื•ืช ืกื™ื•ืžืช ืฉื ื”ืงื•ื‘ืฅ ".info".

--ื ึธืชึดื™ื‘ ื ืชื™ื‘
ื”ืกืจ ื ืชื™ื‘ ืžืฉืžื•ืช ืงื‘ืฆื™ื ื‘ืขืช ื”ื—ืœืช diff.

ื”ืฉืชืžืฉ ื‘ืืคืฉืจื•ืช ื–ื• ื™ื—ื“ ืขื --diff ื›ื“ื™ ืœื•ืžืจ ืœ-lcov ืœื”ืชืขืœื ืžื”ืžืคื•ืจื˜
ืจื›ื™ื‘ ื ืชื™ื‘ ืจืืฉื•ื ื™ ื‘ืขืช ื”ืชืืžื” ื‘ื™ืŸ ืฉืžื•ืช ืงื‘ืฆื™ื tracefile ื•-diff.

-q
--ืฉืึถืงึถื˜
ืืœ ืชื“ืคื™ืก ื”ื•ื“ืขื•ืช ื”ืชืงื“ืžื•ืช.

ืืคืฉืจื•ืช ื–ื• ืžืฉืชืžืขืช ื›ืืฉืจ ืœื ืฆื•ื™ืŸ ืฉื ืงื•ื‘ืฅ ืคืœื˜ ื›ื“ื™ ืœืžื ื•ืข ื”ืชืงื“ืžื•ืช
ื”ื•ื“ืขื•ืช ืœื”ืชืขืกืง ืขื ื ืชื•ื ื™ ื›ื™ืกื•ื™ ืฉื’ื ื”ื ืžื•ื“ืคืกื™ื ืœืคืœื˜ ื”ืกื˜ื ื“ืจื˜ื™.

--rc ืžื™ืœื•ืช ืžืคืชื—=ืขืจืš
ืขื•ืงืฃ ื”ื•ืจืืช ืชืฆื•ืจื”.

ื”ืฉืชืžืฉ ื‘ืืคืฉืจื•ืช ื–ื• ื›ื“ื™ ืœืฆื™ื™ืŸ ื ืžื™ืœื•ืช ืžืคืชื—=ืขืจืš ื”ืฆื”ืจื” ืืฉืจ ืขื•ืงืคืช ืืช
ื”ืฆื”ืจืช ื”ืชืฆื•ืจื” ื”ืžืชืื™ืžื” ื‘ืงื•ื‘ืฅ ื”ืชืฆื•ืจื” ืฉืœ lcovrc. ืืชื” ื™ื›ื•ืœ
ืฆื™ื™ืŸ ืืคืฉืจื•ืช ื–ื• ื™ื•ืชืจ ืžืคืขื ืื—ืช ื›ื“ื™ ืœืขืงื•ืฃ ื”ืฆื”ืจื•ืช ืชืฆื•ืจื” ืžืจื•ื‘ื•ืช.
ืœึดืจึฐืื•ึนืช lcovrc(5) ืœืจืฉื™ืžื” ืฉืœ ืžื™ืœื•ืช ืžืคืชื— ื–ืžื™ื ื•ืช ื•ืžืฉืžืขื•ืชืŸ.

-r ืงื•ื‘ืฅ ืขืงื‘ื•ืช ื“ืคื•ืก
--ืœึฐื”ึทืกึดื™ืจ ืงื•ื‘ืฅ ืขืงื‘ื•ืช ื“ืคื•ืก
ื”ืกืจ ื ืชื•ื ื™ื ืž ืงื•ื‘ืฅ ืขืงื‘ื•ืช.

ื”ืฉืชืžืฉ ื‘ืžืชื’ ื–ื” ืื ื‘ืจืฆื•ื ืš ืœื”ืกื™ืจ ื ืชื•ื ื™ ื›ื™ืกื•ื™ ืขื‘ื•ืจ ืงื‘ื•ืฆื” ืžืกื•ื™ืžืช ืฉืœ ืงื‘ืฆื™ื
ืžืชื•ืš ืงื•ื‘ืฅ ืขืงื‘ื•ืช. ืคืจืžื˜ืจื™ื ื ื•ืกืคื™ื ืฉืœ ืฉื•ืจืช ื”ืคืงื•ื“ื” ื™ืชืคืจืฉื• ื›- shell
ื“ืคื•ืกื™ ืชื•ื•ื™ื ื›ืœืœื™ื™ื (ืฉื™ื ืœื‘ ืฉื™ื™ืชื›ืŸ ืฉื™ื”ื™ื” ืฆื•ืจืš ืœื”ืžืœื˜ ืื•ืชื ื‘ื”ืชืื ื›ื“ื™ ืœืžื ื•ืข ืืช
ืžืขื˜ืคืช ืžืœื”ืจื—ื™ื‘ ืื•ืชื ืชื—ื™ืœื”). ื›ืœ ื”ื–ื ืช ืงื•ื‘ืฅ ื‘ ืงื•ื‘ืฅ ืขืงื‘ื•ืช ืืฉืจ ืžืชืื™ื ื‘
ืœืคื—ื•ืช ืื—ื“ ืžื”ื“ืคื•ืกื™ื ื”ืืœื” ื™ื•ืกืจ.

ื”ืชื•ืฆืื” ืฉืœ ืคืขื•ืœืช ื”ื”ืกืจื” ืชื™ื›ืชื‘ ืœ-stdout ืื• ืœ-tracefile
ืžืฆื•ื™ืŸ ืขื -o.

ื ื™ืชืŸ ืœืฆื™ื™ืŸ ืจืง ืื—ื“ ืž-z, -c, -a, -e, -r, -l, --diff ืื• --summary ื‘-
ื”ื–ืžืŸ.

--ืœึฐื”ึดืชึฐืคึผึทืฉืึตื˜ ืขื•ืžืง
ืจืฆื•ืขืช ืจื›ื™ื‘ื™ ื ืชื™ื‘ ื‘ืขืช ื”ื—ืœืช ื”ืคืจืฉ.

ื”ืฉืชืžืฉ ื‘ืืคืฉืจื•ืช ื–ื• ื™ื—ื“ ืขื --diff ื›ื“ื™ ืœื•ืžืจ ืœ-lcov ืœื”ืชืขืœื ืžื”ืžืกืคืจ ืฉืฆื•ื™ืŸ
ืฉืœ ืกืคืจื™ื•ืช ืจืืฉื•ื ื™ื•ืช ื‘ืขืช ื”ืชืืžืช ืฉืžื•ืช ืงื‘ืฆื™ื tracefile ื•-diff.

--ืกื™ื›ื•ื ืงื•ื‘ืฅ ืขืงื‘ื•ืช
ื”ืฆื’ ืžื™ื“ืข ืกื™ื›ื•ื ื›ื™ืกื•ื™ ืขื‘ื•ืจ ืงื•ื‘ืฅ ื”ืขืงื‘ื•ืช ืฉืฆื•ื™ืŸ.

ืฉื™ื ืœื‘ ืฉืืชื” ื™ื›ื•ืœ ืœืฆื™ื™ืŸ ืืคืฉืจื•ืช ื–ื• ื™ื•ืชืจ ืžืคืขื ืื—ืช.

ื ื™ืชืŸ ืœืฆื™ื™ืŸ ืจืง ืื—ื“ ืž-z, -c, -a, -e, -r, -l, --diff ืื• --summary ื‘-
ื”ื–ืžืŸ.

-t ืฉื ื”ืžื‘ื—ืŸ
--ืฉื ื”ืžื‘ื—ืŸ ืฉื ื”ืžื‘ื—ืŸ
ืฆื™ื™ืŸ ืืช ืฉื ื”ื‘ื“ื™ืงื” ืฉื™ืฉ ืœืื—ืกืŸ ื‘ืงื•ื‘ืฅ ื”ืขืงื‘ื•ืช.

ืฉื ื–ื” ืžื–ื”ื” ืžืขืจืš ื ืชื•ื ื™ ื›ื™ืกื•ื™ ื›ืืฉืจ ื™ื•ืชืจ ืžืงื‘ื•ืฆืช ื ืชื•ื ื™ื ืื—ื“ ืžืชืžื–ื’ื™ื ืœืชื•ืš
ืงื•ื‘ืฅ ืขืงื‘ื•ืช ืžืฉื•ืœื‘ (ืจืื” ืืคืฉืจื•ืช -ื).

ืฉืžื•ืช ืžื‘ื—ื ื™ื ื—ื•ืงื™ื™ื ื™ื›ื•ืœื™ื ืœื”ื™ื•ืช ืžื•ืจื›ื‘ื™ื ืžืื•ืชื™ื•ืช, ืกืคืจื•ืช ืขืฉืจื•ื ื™ื•ืช ื•ืžืงื• ืชื—ืชื•ืŸ
ืื•ืคื™ ("_").

--ืœืืจื•ื– ื—ื‘ื™ืœื”
ืื—ืกืŸ ืงื‘ืฆื™ .da ืœืขื™ื‘ื•ื“ ืžืื•ื—ืจ ื™ื•ืชืจ.

ื”ืฉืชืžืฉ ื‘ืืคืฉืจื•ืช ื–ื• ืื ื™ืฉ ืœืš ืžื›ื•ื ื•ืช ื ืคืจื“ื•ืช ืœื‘ื ื™ื™ื” ื•ืœื‘ื“ื™ืงื” ื•ืืชื” ืจื•ืฆื”
ื‘ืฆืข ืืช ื™ืฆื™ืจืช ืงื•ื‘ืฅ ื”-.info ื‘ืžื—ืฉื‘ ื”-build. ื›ื“ื™ ืœืขืฉื•ืช ื–ืืช, ืขืงื•ื‘ ืื—ืจ ืืœื”
ืฆืขื“ื™ื:

ื‘ืžื›ื•ื ืช ื”ื‘ื“ื™ืงื”:
- ื”ืคืขืœ ืืช ื”ื‘ื“ื™ืงื”
- ื”ืคืขืœ ืืช lcov -c [-d directory] --to-package ืคื™ืœื”
- ืขื•ืชืง ืคื™ืœื” ืœืžื›ื•ื ืช ื”ื‘ื ื™ื™ื”

ืขืœ ืžื›ื•ื ืช ื”ื‘ื ื™ื™ื”:
- ื”ืคืขืœ lcov -c --from-package ืคื™ืœื” [-o ื•ืืคืฉืจื•ื™ื•ืช ืื—ืจื•ืช]

ื–ื” ืขื•ื‘ื“ ื”ืŸ ืขื‘ื•ืจ ื ืชื•ื ื™ ื›ื™ืกื•ื™ ื”ืœื™ื‘ื” ื•ื”ืŸ ืขืœ ืฉื˜ื— ื”ืžืฉืชืžืฉ. ืฉื™ื ืœื‘ ืฉืื•ืœื™ ื™ืฉ ืœืš
ื›ื“ื™ ืœืฆื™ื™ืŸ ืืช ื”ื ืชื™ื‘ ืœืกืคืจื™ื™ืช ื”-build ื‘ืืžืฆืขื•ืช -b ืขื --to-package ืื•
--ืž-ื—ื‘ื™ืœื”. ืฉื™ืžื• ืœื‘ ื’ื ืฉื™ืฉ ืœื”ืžื™ืจ ืืช ื ืชื•ื ื™ ื”ื—ื‘ื™ืœื” ืœืงื•ื‘ืฅ .info
ืœืคื ื™ ื”ื™ื“ื•ืจ ืžื—ื“ืฉ ืฉืœ ื”ืชื•ื›ื ื™ืช ืื• ืฉื”ื™ื ืชื”ืคื•ืš ืœื‘ืœืชื™ ื—ื•ืงื™ืช.

-v
--ื’ึดืจึฐืกึธื”
ื”ื“ืคืก ืืช ืžืกืคืจ ื”ื’ืจืกื” ื•ืœืื—ืจ ืžื›ืŸ ืฆื.

-z
--ืืคืก ืžื•ื ื™ื
ืืคืก ืืช ื›ืœ ืกืคื™ืจื•ืช ื”ื‘ื™ืฆื•ืข ืœืืคืก.

ื›ื‘ืจื™ืจืช ืžื—ื“ืœ ืžื ืกื” ืœืืคืก ืืช ืกืคื™ืจื•ืช ื”ื‘ื™ืฆื•ืข ืฉืœ ื”ืœื™ื‘ื”. ื”ืฉืชืžืฉ ื‘ืืคืฉืจื•ืช --directory ื›ื“ื™
ืืคืก ืืช ื›ืœ ื”ืžื•ื ื™ื ืฉืœ ืชื•ื›ื ื™ืช ืฉื˜ื— ืžืฉืชืžืฉ.

ื ื™ืชืŸ ืœืฆื™ื™ืŸ ืจืง ืื—ื“ ืž-z, -c, -a, -e, -r, -l, --diff ืื• --summary ื‘-
ื”ื–ืžืŸ.

ื”ืฉืชืžืฉ ื‘-lcov ื‘ืื™ื ื˜ืจื ื˜ ื‘ืืžืฆืขื•ืช ืฉื™ืจื•ืชื™ onworks.net


ืฉืจืชื™ื ื•ืชื—ื ื•ืช ืขื‘ื•ื“ื” ื‘ื—ื™ื ื

ื”ื•ืจื“ ืืคืœื™ืงืฆื™ื•ืช Windows & Linux

  • 1
    ืงืœืžื ื˜ื™ื ื”
    ืงืœืžื ื˜ื™ื ื”
    ืงืœืžื ื˜ื™ื™ืŸ ื”ื™ื ืžื•ื–ื™ืงื” ืžืจื•ื‘ืช ืคืœื˜ืคื•ืจืžื•ืช
    ื ื’ืŸ ื•ืžืืจื’ืŸ ืกืคืจื™ื™ื” ื‘ื”ืฉืจืืช
    ืืžืืจื•ืง 1.4. ื™ืฉ ืœื• ืžื”ื™ืจ ื•
    ืžืžืฉืง ืงืœ ืœืฉื™ืžื•ืฉ, ื•ืžืืคืฉืจ ืœืš
    ื—ืคืฉ ื•...
    ื”ื•ืจื“ ืืช ืงืœืžื ื˜ื™ื™ืŸ
  • 2
    XISMuS
    XISMuS
    ืฉื™ืžื• ืœื‘: ืœืขื“ื›ื•ืŸ ืžืฆื˜ื‘ืจ 2.4.3 ื™ืฉ
    ืฉื•ื—ืจืจ!! ื”ืขื“ื›ื•ืŸ ืขื•ื‘ื“ ืขื‘ื•ืจ ื›ืœ ืื—ื“
    ื’ืจืกื” ืงื•ื“ืžืช ืฉืœ 2.xx. ืื ืžืฉื“ืจื’ื™ื
    ืžื’ืจืกื” v1.xx, ืื ื ื”ื•ืจื“ ื•
    ืื ื™ ...
    ื”ื•ืจื“ ืืช XISMuS
  • 3
    facetracknoir
    facetracknoir
    ืชื•ื›ื ื™ืช ืžืขืงื‘ ืจืืฉ ืžื•ื“ื•ืœืจื™ืช ื›ื™
    ืชื•ืžืš ื‘ืžืกืคืจ ืขื•ืงื‘ื™ ืคื ื™ื, ืžืกื ื ื™ื
    ื•ืคืจื•ื˜ื•ืงื•ืœื™ ืžืฉื—ืง. ื‘ื™ืŸ ื”ื’ืฉืฉื™ื
    ื”ื SM FaceAPI, AIC Inertial Head
    ืขื•ืงื‘ ...
    ื”ื•ืจื“ ืืช facetracknoir
  • 4
    ืงื•ื“ QR ืฉืœ PHP
    ืงื•ื“ QR ืฉืœ PHP
    PHP QR Code ื”ื•ื ืงื•ื“ ืคืชื•ื— (LGPL)
    ืกืคืจื™ื™ื” ืœื”ืคืงืช ืงื•ื“ QR,
    ื‘ืจืงื•ื“ ื“ื• ืžื™ืžื“ื™. ืžื‘ื•ืกืก ืขืœ
    ืกืคืจื™ื™ืช libqrencode C, ืžืกืคืงืช API ืขื‘ื•ืจ
    ื™ืฆื™ืจืช ืกืจื’ืœ ืงื•ื“ QR...
    ื”ื•ืจื“ PHP QR Code
  • 5
    ืคืจื™ืกื™ื‘
    ืคืจื™ืกื™ื‘
    Freeciv ื”ื•ื ืžื‘ื•ืกืก ืชื•ืจ ื—ื™ื ืžื™
    ืžืฉื—ืง ืืกื˜ืจื˜ื’ื™ื” ืžืจื•ื‘ื” ืžืฉืชืชืคื™ื, ืฉื‘ื• ื›ืœ ืื—ื“
    ืฉื—ืงืŸ ื”ื•ืคืš ืœืžื ื”ื™ื’ ืฉืœ ื
    ืฆื™ื•ื•ื™ืœื™ื–ืฆื™ื”, ื ืœื—ืžืช ืœื”ืฉื™ื’ ืืช
    ื”ืžื˜ืจื” ื”ืกื•ืคื™ืช: ืœื”ื™ื•ืช...
    ื”ื•ืจื“ ืืช Freeciv
  • 6
    ืืจื’ื– ื—ื•ืœ ืฉืœ ืงื•ืงื™ื™ื”
    ืืจื’ื– ื—ื•ืœ ืฉืœ ืงื•ืงื™ื™ื”
    Cuckoo Sandbox ืžืฉืชืžืฉ ื‘ืจื›ื™ื‘ื™ื ื›ื“ื™
    ืœืคืงื— ืขืœ ื”ื”ืชื ื”ื’ื•ืช ืฉืœ ืชื•ื›ื ื•ืช ื–ื“ื•ื ื™ื•ืช ื‘-a
    ืกื‘ื™ื‘ืช ืืจื’ื– ื—ื•ืœ; ืžื‘ื•ื“ื“ ืžื”
    ืฉืืจ ื”ืžืขืจื›ืช. ื”ื•ื ืžืฆื™ืข ืื•ื˜ื•ืžื˜ื™
    ื ื™ืชื•ื— ืื•...
    ื”ื•ืจื“ ืงื•ืงื™ื™ื” ื—ื•ืœ
  • ืขื•ื“ ยป

ืคืงื•ื“ื•ืช ืœื™ื ื•ืงืก

Ad