# Smoke test: generate an op histogram from a trivial program.
# The histogram file should contain a total_cycles header and one row per
# executed operation, sorted by descending cycle count.
#
# RUN: compile-masm %S/add.masm -o %t.masp
# RUN: (miden-debug \
# RUN: --profiling-reports-dir %t_reports \
# RUN: --profiling-instruments op-histogram \
# RUN: --commands %s %t.masp 2>&1; \
# RUN: cat %t_reports/op-histogram) | filecheck %s
continue
stack
# CHECK: Program terminated successfully
# CHECK: [0] 7
# CHECK: total_cycles 100% 11
# CHECK-NEXT: push 36.36% 4
# CHECK-NEXT: noop 27.27% 3
# CHECK-NEXT: add 18.18% 2
# CHECK-NEXT: drop 9.09% 1
# CHECK-NEXT: mstore 9.09% 1