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

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!
主站蜘蛛池模板: 巴中市| 广州市| 镇安县| 墨脱县| 麟游县| 台南县| 遵化市| 彩票| 新乡市| 鸡泽县| 马尔康县| 陆河县| 墨竹工卡县| 当阳市| 韩城市| 南涧| 盈江县| 永嘉县| 长宁县| 阿合奇县| 洛扎县| 洪泽县| 华宁县| 临夏县| 榆社县| 海城市| 苍山县| 东丽区| 海阳市| 仁布县| 岚皋县| 长白| 广平县| 高台县| 当涂县| 凤冈县| 巴中市| 宁武县| 兰坪| 泸溪县| 专栏|