diff options
author | Ted Gould <ted@gould.cx> | 2012-04-09 09:15:17 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2012-04-09 09:15:17 -0500 |
commit | 475110aa2fe3a47cf6331fbd5941f34a9461fd81 (patch) | |
tree | bf2318e8b94cf0b74ea17b496e9d5331a3c065ec /tests/test-json-instruction-count | |
parent | e0eb750e8c36a4116247ea80b4d055a9f821459a (diff) | |
parent | 2d60549a2394ce7d73907abcaca22b48553d6c5b (diff) | |
download | libdbusmenu-475110aa2fe3a47cf6331fbd5941f34a9461fd81.tar.gz libdbusmenu-475110aa2fe3a47cf6331fbd5941f34a9461fd81.tar.bz2 libdbusmenu-475110aa2fe3a47cf6331fbd5941f34a9461fd81.zip |
Catching up to 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" |