| 1 | #RUN: llvm-xray account %s -o - -m %S/Inputs/simple-instrmap.yaml | FileCheck --check-prefix DEFAULT %s |
| 2 | #RUN: llvm-xray account %s -o - -m %S/Inputs/simple-instrmap.yaml -s count | FileCheck --check-prefix COUNT-ASC %s |
| 3 | #RUN: llvm-xray account %s -o - -m %S/Inputs/simple-instrmap.yaml -s min | FileCheck --check-prefix MIN-ASC %s |
| 4 | #RUN: llvm-xray account %s -o - -m %S/Inputs/simple-instrmap.yaml -s max | FileCheck --check-prefix MAX-ASC %s |
| 5 | #RUN: llvm-xray account %s -o - -m %S/Inputs/simple-instrmap.yaml -s sum | FileCheck --check-prefix SUM-ASC %s |
| 6 | |
| 7 | #RUN: llvm-xray account %s -o - -m %S/Inputs/simple-instrmap.yaml -s count -r dsc | FileCheck --check-prefix COUNT-DSC %s |
| 8 | #RUN: llvm-xray account %s -o - -m %S/Inputs/simple-instrmap.yaml -s min -r dsc | FileCheck --check-prefix MIN-DSC %s |
| 9 | #RUN: llvm-xray account %s -o - -m %S/Inputs/simple-instrmap.yaml -s max -r dsc | FileCheck --check-prefix MAX-DSC %s |
| 10 | #RUN: llvm-xray account %s -o - -m %S/Inputs/simple-instrmap.yaml -s sum -r dsc | FileCheck --check-prefix SUM-DSC %s |
| 11 | --- |
| 12 | header: |
| 13 | version: 1 |
| 14 | type: 0 |
| 15 | constant-tsc: true |
| 16 | nonstop-tsc: true |
| 17 | cycle-frequency: 1 |
| 18 | records: |
| 19 | # Function id: 1 |
| 20 | - { type: 0, func-id: 1, cpu: 1, thread: 111, kind: function-enter, tsc: 10001 } |
| 21 | - { type: 0, func-id: 1, cpu: 1, thread: 111, kind: function-exit, tsc: 10100 } |
| 22 | - { type: 0, func-id: 1, cpu: 1, thread: 111, kind: function-enter, tsc: 10101 } |
| 23 | - { type: 0, func-id: 1, cpu: 1, thread: 111, kind: function-exit, tsc: 10200 } |
| 24 | - { type: 0, func-id: 1, cpu: 1, thread: 111, kind: function-enter, tsc: 10201 } |
| 25 | - { type: 0, func-id: 1, cpu: 1, thread: 111, kind: function-exit, tsc: 10300 } |
| 26 | # Function id: 2 |
| 27 | - { type: 0, func-id: 2, cpu: 1, thread: 222, kind: function-enter, tsc: 10001 } |
| 28 | - { type: 0, func-id: 2, cpu: 1, thread: 222, kind: function-exit, tsc: 10002 } |
| 29 | - { type: 0, func-id: 2, cpu: 1, thread: 222, kind: function-enter, tsc: 10101 } |
| 30 | - { type: 0, func-id: 2, cpu: 1, thread: 222, kind: function-exit, tsc: 10102 } |
| 31 | |
| 32 | #DEFAULT: Functions with latencies: 2 |
| 33 | #DEFAULT-NEXT: funcid count [ min, med, 90p, 99p, max] sum function |
| 34 | #DEFAULT-NEXT: 1 3 [{{.*}}, {{.*}}, {{.*}}, {{.*}}, {{.*}}] {{.*}} {{.*}} |
| 35 | #DEFAULT-NEXT: 2 2 [{{.*}}, {{.*}}, {{.*}}, {{.*}}, {{.*}}] {{.*}} {{.*}} |
| 36 | |
| 37 | #COUNT-ASC: Functions with latencies: 2 |
| 38 | #COUNT-ASC-NEXT: funcid count [ min, med, 90p, 99p, max] sum function |
| 39 | #COUNT-ASC-NEXT: 2 2 [{{.*}}, {{.*}}, {{.*}}, {{.*}}, {{.*}}] {{.*}} {{.*}} |
| 40 | #COUNT-ASC-NEXT: 1 3 [{{.*}}, {{.*}}, {{.*}}, {{.*}}, {{.*}}] {{.*}} {{.*}} |
| 41 | |
| 42 | #COUNT-DSC: Functions with latencies: 2 |
| 43 | #COUNT-DSC-NEXT: funcid count [ min, med, 90p, 99p, max] sum function |
| 44 | #COUNT-DSC-NEXT: 1 3 [{{.*}}, {{.*}}, {{.*}}, {{.*}}, {{.*}}] {{.*}} {{.*}} |
| 45 | #COUNT-DSC-NEXT: 2 2 [{{.*}}, {{.*}}, {{.*}}, {{.*}}, {{.*}}] {{.*}} {{.*}} |
| 46 | |
| 47 | #MIN-ASC: Functions with latencies: 2 |
| 48 | #MIN-ASC-NEXT: funcid count [ min, med, 90p, 99p, max] sum function |
| 49 | #MIN-ASC-NEXT: 2 2 [{{.*}}, {{.*}}, {{.*}}, {{.*}}, {{.*}}] {{.*}} {{.*}} |
| 50 | #MIN-ASC-NEXT: 1 3 [{{.*}}, {{.*}}, {{.*}}, {{.*}}, {{.*}}] {{.*}} {{.*}} |
| 51 | |
| 52 | #MIN-DSC: Functions with latencies: 2 |
| 53 | #MIN-DSC-NEXT: funcid count [ min, med, 90p, 99p, max] sum function |
| 54 | #MIN-DSC-NEXT: 1 3 [{{.*}}, {{.*}}, {{.*}}, {{.*}}, {{.*}}] {{.*}} {{.*}} |
| 55 | #MIN-DSC-NEXT: 2 2 [{{.*}}, {{.*}}, {{.*}}, {{.*}}, {{.*}}] {{.*}} {{.*}} |
| 56 | |
| 57 | #MAX-ASC: Functions with latencies: 2 |
| 58 | #MAX-ASC-NEXT: funcid count [ min, med, 90p, 99p, max] sum function |
| 59 | #MAX-ASC-NEXT: 2 2 [{{.*}}, {{.*}}, {{.*}}, {{.*}}, {{.*}}] {{.*}} {{.*}} |
| 60 | #MAX-ASC-NEXT: 1 3 [{{.*}}, {{.*}}, {{.*}}, {{.*}}, {{.*}}] {{.*}} {{.*}} |
| 61 | |
| 62 | #MAX-DSC: Functions with latencies: 2 |
| 63 | #MAX-DSC-NEXT: funcid count [ min, med, 90p, 99p, max] sum function |
| 64 | #MAX-DSC-NEXT: 1 3 [{{.*}}, {{.*}}, {{.*}}, {{.*}}, {{.*}}] {{.*}} {{.*}} |
| 65 | #MAX-DSC-NEXT: 2 2 [{{.*}}, {{.*}}, {{.*}}, {{.*}}, {{.*}}] {{.*}} {{.*}} |
| 66 | |
| 67 | #SUM-ASC: Functions with latencies: 2 |
| 68 | #SUM-ASC-NEXT: funcid count [ min, med, 90p, 99p, max] sum function |
| 69 | #SUM-ASC-NEXT: 2 2 [{{.*}}, {{.*}}, {{.*}}, {{.*}}, {{.*}}] {{.*}} {{.*}} |
| 70 | #SUM-ASC-NEXT: 1 3 [{{.*}}, {{.*}}, {{.*}}, {{.*}}, {{.*}}] {{.*}} {{.*}} |
| 71 | |
| 72 | #SUM-DSC: Functions with latencies: 2 |
| 73 | #SUM-DSC-NEXT: funcid count [ min, med, 90p, 99p, max] sum function |
| 74 | #SUM-DSC-NEXT: 1 3 [{{.*}}, {{.*}}, {{.*}}, {{.*}}, {{.*}}] {{.*}} {{.*}} |
| 75 | #SUM-DSC-NEXT: 2 2 [{{.*}}, {{.*}}, {{.*}}, {{.*}}, {{.*}}] {{.*}} {{.*}} |