mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Add Frontend.NumInstructions statistic, populated on macOS by rusage_info_v4.
This commit is contained in:
10
test/Misc/stats_dir_instructions.swift
Normal file
10
test/Misc/stats_dir_instructions.swift
Normal 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")
|
||||
}
|
||||
Reference in New Issue
Block a user