| 1 |
#RUN: llvm-xray graph %s -o - -m %S/Inputs/simple-instrmap.yaml \ |
| 2 |
#RUN: | FileCheck %s -check-prefix=EMPTY |
| 3 |
#RUN: llvm-xray graph %s -o - -m %S/Inputs/simple-instrmap.yaml -e count \ |
| 4 |
#RUN: | FileCheck %s -check-prefix=COUNT |
| 5 |
# |
| 6 |
#RUN: llvm-xray graph %s -o - -m %S/Inputs/simple-instrmap.yaml -e min \ |
| 7 |
#RUN: | FileCheck %s -check-prefix=TIME |
| 8 |
#RUN: llvm-xray graph %s -o - -m %S/Inputs/simple-instrmap.yaml -e med \ |
| 9 |
#RUN: | FileCheck %s -check-prefix=TIME |
| 10 |
#RUN: llvm-xray graph %s -o - -m %S/Inputs/simple-instrmap.yaml -e 90p \ |
| 11 |
#RUN: | FileCheck %s -check-prefix=TIME |
| 12 |
#RUN: llvm-xray graph %s -o - -m %S/Inputs/simple-instrmap.yaml -e 99p \ |
| 13 |
#RUN: | FileCheck %s -check-prefix=TIME |
| 14 |
#RUN: llvm-xray graph %s -o - -m %S/Inputs/simple-instrmap.yaml -e max \ |
| 15 |
#RUN: | FileCheck %s -check-prefix=TIME |
| 16 |
#RUN: llvm-xray graph %s -o - -m %S/Inputs/simple-instrmap.yaml -e sum \ |
| 17 |
#RUN: | FileCheck %s -check-prefix=TIME |
| 18 |
--- |
| 19 |
header: |
| 20 |
version: 1 |
| 21 |
type: 0 |
| 22 |
constant-tsc: true |
| 23 |
nonstop-tsc: true |
| 24 |
cycle-frequency: 2601000000 |
| 25 |
records: |
| 26 |
- { type: 0, func-id: 1, cpu: 1, thread: 111, kind: function-enter, tsc: 10001 } |
| 27 |
- { type: 0, func-id: 1, cpu: 1, thread: 111, kind: function-exit, tsc: 10100 } |
| 28 |
... |
| 29 |
|
| 30 |
|
| 31 |
#EMPTY: digraph xray { |
| 32 |
#EMPTY-NEXT: F0 -> F1 [label=""]; |
| 33 |
#EMPTY-NEXT: F1 [label="@(1)"]; |
| 34 |
#EMPTY-NEXT: } |
| 35 |
|
| 36 |
#COUNT: digraph xray { |
| 37 |
#COUNT-NEXT: F0 -> F1 [label="1"]; |
| 38 |
#COUNT-NEXT: F1 [label="@(1)"]; |
| 39 |
#COUNT-NEXT: } |
| 40 |
|
| 41 |
#TIME: digraph xray { |
| 42 |
#TIME-NEXT: F0 -> F1 [label="3.8{{.*}}e-08"]; |
| 43 |
#TIME-NEXT: F1 [label="@(1)"]; |
| 44 |
#TIME-NEXT: } |