- 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!
推薦閱讀
- C及C++程序設計(第4版)
- 流量的秘密:Google Analytics網站分析與優化技巧(第2版)
- Fundamentals of Linux
- Visual Basic程序開發(學習筆記)
- HDInsight Essentials(Second Edition)
- Building an RPG with Unity 2018
- Web Development with MongoDB and Node(Third Edition)
- 批調度與網絡問題的組合算法
- 學習OpenCV 4:基于Python的算法實戰
- 零基礎Java學習筆記
- 一塊面包板玩轉Arduino編程
- Java EE架構設計與開發實踐
- TypeScript圖形渲染實戰:2D架構設計與實現
- INSTANT PLC Programming with RSLogix 5000
- RESTful Web API Design with Node.js