Add Frontend.NumInstructions statistic, populated on macOS by rusage_info_v4.

This commit is contained in:
Graydon Hoare
2018-08-11 23:28:57 -07:00
parent e68e087462
commit bdb00fceb0
5 changed files with 39 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
// REQUIRES: OS=macosx
// RUN: %empty-directory(%t)
// RUN: %target-swiftc_driver -o %t/main -module-name main -stats-output-dir %t %s
// RUN: %{python} %utils/process-stats-dir.py --set-csv-baseline %t/frontend.csv %t
// RUN: %FileCheck -input-file %t/frontend.csv %s
// CHECK: {{"Frontend.NumInstructions" [1-9][0-9]*$}}
public func foo() {
print("hello")
}