21 lines · yaml
1#RUN: llvm-xray graph %s -o - -m %S/Inputs/simple-instrmap.yaml | FileCheck %s2 3---4header:5 version: 16 type: 07 constant-tsc: true8 nonstop-tsc: true9 cycle-frequency: 260100000010records:11 - { type: 0, func-id: 1, cpu: 1, thread: 111, kind: function-enter, tsc: 10001 }12 - { type: 0, func-id: 2, cpu: 1, thread: 111, kind: function-enter, tsc: 10002 }13 - { type: 0, func-id: 2, cpu: 1, thread: 111, kind: function-exit, tsc: 10002 }14 - { type: 0, func-id: 1, cpu: 1, thread: 111, kind: function-exit, tsc: 10100 }15...16 17#CHECK: digraph xray {18#CHECK-DAG: F0 -> F1 [{{.*}}];19#CHECK-DAG: F1 -> F2 [{{.*}}];20#CHECK-DAG: }21