dump_timings.carbon 908 B

123456789101112131415161718192021
  1. // Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. // Exceptions. See /LICENSE for license information.
  3. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. //
  5. // ARGS: --include-diagnostic-kind compile --dump-timings --phase=check %s
  6. //
  7. // SET-CHECK-SUBSET
  8. //
  9. // NOAUTOUPDATE
  10. // TIP: To test this file alone, run:
  11. // TIP: bazel test //toolchain/testing:file_test --test_arg=--file_tests=toolchain/driver/testdata/dump_timings.carbon
  12. // TIP: To dump output, run:
  13. // TIP: bazel run //toolchain/testing:file_test -- --dump_output --file_tests=toolchain/driver/testdata/dump_timings.carbon
  14. // CHECK:STDOUT: filename: dump_timings.carbon
  15. // CHECK:STDOUT: nanoseconds:
  16. // CHECK:STDOUT: lex: {{\d+}}
  17. // CHECK:STDOUT: parse: {{\d+}}
  18. // CHECK:STDOUT: check: {{\d+}}
  19. // CHECK:STDOUT: Total: {{\d+}}
  20. // CHECK:STDOUT: ...