- 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!
推薦閱讀
- Mastering Visual Studio 2017
- Java系統(tǒng)分析與架構(gòu)設(shè)計(jì)
- Learning Spring 5.0
- Access 數(shù)據(jù)庫應(yīng)用教程
- Mastering QGIS
- Neo4j Essentials
- 機(jī)械工程師Python編程:入門、實(shí)戰(zhàn)與進(jìn)階
- Mastering RStudio:Develop,Communicate,and Collaborate with R
- 零基礎(chǔ)學(xué)Python網(wǎng)絡(luò)爬蟲案例實(shí)戰(zhàn)全流程詳解(高級(jí)進(jìn)階篇)
- 響應(yīng)式Web設(shè)計(jì):HTML5和CSS3實(shí)戰(zhàn)(第2版)
- Java Web開發(fā)教程:基于Struts2+Hibernate+Spring
- micro:bit軟件指南
- 打造流暢的Android App
- JavaScript編程精解(原書第3版)
- 流暢的Python