diff options
| author | Kitson Kelly <me@kitsonkelly.com> | 2020-06-24 19:58:23 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-24 11:58:23 +0200 |
| commit | 1d8fc394945fb4447cec23fbfc61fc8961126b7a (patch) | |
| tree | 8969445c4862c3944882f426ed94ab8062129f46 /cli/tests | |
| parent | f6a41469730e8dcd0995d3e5dd370b9410c65ba4 (diff) | |
Add ability to output compiler performance information (#6434)
Diffstat (limited to 'cli/tests')
| -rw-r--r-- | cli/tests/integration_tests.rs | 5 | ||||
| -rw-r--r-- | cli/tests/performance_stats.out | 14 |
2 files changed, 19 insertions, 0 deletions
diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs index 78a89eb2b..d5b4016c1 100644 --- a/cli/tests/integration_tests.rs +++ b/cli/tests/integration_tests.rs @@ -2048,6 +2048,11 @@ itest!(single_compile_with_reload { output: "single_compile_with_reload.ts.out", }); +itest!(performance_stats { + args: "run --reload --log-level debug 002_hello.ts", + output: "performance_stats.out", +}); + itest!(proto_exploit { args: "run proto_exploit.js", output: "proto_exploit.js.out", diff --git a/cli/tests/performance_stats.out b/cli/tests/performance_stats.out new file mode 100644 index 000000000..9fea7715a --- /dev/null +++ b/cli/tests/performance_stats.out @@ -0,0 +1,14 @@ +[WILDCARD] +Files: 43 +Nodes: [WILDCARD] +Identifiers: [WILDCARD] +Symbols: [WILDCARD] +Types: [WILDCARD] +Instantiations: [WILDCARD] +Parse time: [WILDCARD] +Bind time: [WILDCARD] +Check time: [WILDCARD] +Emit time: [WILDCARD] +Total TS time: [WILDCARD] +Compile time: [WILDCARD] +[WILDCARD] |
