diff options
author | Ted Gould <ted@gould.cx> | 2012-03-30 09:37:56 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2012-03-30 09:37:56 -0500 |
commit | 2372656fcf782c7ca28acb579eb70dbd2e47f35a (patch) | |
tree | 82fb4dd5f076f792bf73b7ad019eb7d0ca47d238 /tests/test-json-instruction-count | |
parent | 52617668cec85a2864819b3f86073096a7543363 (diff) | |
parent | 86df02fa5a703cacd492db1b999f9449c3247c6b (diff) | |
download | libdbusmenu-2372656fcf782c7ca28acb579eb70dbd2e47f35a.tar.gz libdbusmenu-2372656fcf782c7ca28acb579eb70dbd2e47f35a.tar.bz2 libdbusmenu-2372656fcf782c7ca28acb579eb70dbd2e47f35a.zip |
Merging trunk
Diffstat (limited to 'tests/test-json-instruction-count')
-rwxr-xr-x | tests/test-json-instruction-count | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test-json-instruction-count b/tests/test-json-instruction-count new file mode 100755 index 0000000..3a4db97 --- /dev/null +++ b/tests/test-json-instruction-count @@ -0,0 +1,6 @@ +#!/bin/sh + +COMMAND=$@ +INSTRUCTIONS=`valgrind --tool=callgrind --callgrind-out-file=/dev/null --instr-atstart=no --collect-atstart=no --combine-dumps=yes $COMMAND 2>&1 > /dev/null | grep refs | grep I | tail --lines=1 | cut -d ":" -f 2 | sed -e 's/^[ \t]*//'` + +echo "Instructions needed to execute '$COMMAND': $INSTRUCTIONS" |