Skip to content

Commit ff7d5c0

Browse files
committed
Enable and document profiling support
1 parent 783374b commit ff7d5c0

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,10 @@ bin/table-generator results/*xml.bz2
5252

5353
Replace 2ls by cbmc to use the above with CBMC.
5454

55+
#### Collecting profiling data
56+
```
57+
bin/benchexec cbmc.xml --tasks <those categories that you want to run> -T 120s
58+
gprof --sum ./cbmc-binary *.gmon.out.*
59+
gprof ./cbmc-profiling gmon.sum > sum.profile
60+
rm gmon.out *.gmon.out.*
61+
```

tool-wrapper.inc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ export BIT_WIDTH
113113
export BM
114114
export PROP
115115

116+
export GMON_OUT_PREFIX=`basename $BM`.gmon.out
117+
116118
export LOG=`mktemp -t ${TOOL_NAME}-log.XXXXXX`
117119
trap "rm -f $LOG $LOG.latest $LOG.ok $LOG.witness" EXIT
118120

0 commit comments

Comments
 (0)