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

  • Perl 6 Deep Dive
  • Andrew Shitov
  • 167字
  • 2021-07-03 00:05:45

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!
主站蜘蛛池模板: 舒兰市| 阳春市| 洪泽县| 石台县| 长春市| 新和县| 门源| 会理县| 贞丰县| 龙江县| 安福县| 旺苍县| 婺源县| 黄浦区| 仁布县| 井冈山市| 年辖:市辖区| 塘沽区| 合川市| 沅陵县| 郑州市| 旬邑县| 邯郸县| 丽水市| 竹山县| 辉南县| 无棣县| 潼关县| 青铜峡市| 分宜县| 龙口市| 江达县| 耿马| 台南市| 清水河县| 东乌珠穆沁旗| 新蔡县| 定州市| 剑川县| 凌云县| 合水县|