Skip to content

Commit 7da8f5c

Browse files
committed
WIP: Valgrind/callgrind report generated automatically at end of test
1 parent b098b9a commit 7da8f5c

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

src/tests/multi-server/tests/prof-accept/template.yml.j2

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,17 @@ states:
4444
verify:
4545
timeout: {{ test_verify_timeout }}
4646
trigger_mode: unordered
47+
state_2:
48+
description: >
49+
Generate Valgrind/callgrind profiling report
50+
host:
51+
profiling-server:
52+
actions:
53+
- execute_command:
54+
command: |
55+
# Generate report from non-empty callgrind.out.* output files
56+
cd /etc/prof-results
57+
callgrind_annotate $(find . -name "callgrind.out.*" -size +0c | sort) > callgrind_report.txt
58+
verify:
59+
timeout: 5
60+
trigger_mode: unordered

0 commit comments

Comments
 (0)