官术网_书友最值得收藏!

The --stagestats command

The --stagestats is a command-line option that is more Rakudo-specific than the others we have described earlier. It prints the time spent by the compiler at different stages of compiling and executing the program.

The output differs depending on whether you are running a program or checking its syntax with the -c command-line option. Let's first take a look at what is printed when the -c option is used:

$ perl6 --stagestats -c hello.pl

The output is as follows:

Stage start      :   0.000
Stage parse      :   0.107
Stage syntaxcheck: Syntax OK

Without the -c option, you will see more statistics, because the program will not only be compiled but also executed, as shown here:

$ perl6 --stagestats hello.pl

The regular output of the program is printed:

Stage start      :   0.000
Stage parse      :   0.327
Stage syntaxcheck:   0.000
Stage ast        :   0.000
Stage optimize   :   0.003
Stage mast       :   0.008
Stage mbc        :   0.000
Stage moar       :   0.000
Hello, World!
主站蜘蛛池模板: 河间市| 昌吉市| 嘉祥县| 沂水县| 凌云县| 尖扎县| 长海县| 睢宁县| 门头沟区| 长葛市| 闽侯县| 平江县| 布拖县| 大冶市| 大冶市| 肇源县| 麻栗坡县| 宽城| 苗栗市| 东乡族自治县| 澳门| 福州市| 文成县| 阳信县| 习水县| 治县。| 沁水县| 清镇市| 锡林浩特市| 澳门| 凌源市| 辛集市| 商南县| 额尔古纳市| 岐山县| 新绛县| 金秀| 长汀县| 秭归县| 庆云县| 淅川县|