From 37eb4dbcb7492e048d9a70d02ebf4c3a90fc6347 Mon Sep 17 00:00:00 2001 From: "Carl C. Trieloff" Date: Tue, 31 Jul 2007 19:08:40 +0000 Subject: oprofile script git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@561441 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/prof | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 cpp/src/prof (limited to 'cpp/src/prof') diff --git a/cpp/src/prof b/cpp/src/prof new file mode 100755 index 0000000000..bd889a1446 --- /dev/null +++ b/cpp/src/prof @@ -0,0 +1,18 @@ +#!/bin/bash + +rm /var/lib/oprofile/oprofiled.log + +opcontrol --reset +opcontrol --setup --no-vmlinux --separate=library +opcontrol --start +# -- Do stuff here -- +./qpidd +# -- End of stuff -- +opcontrol --stop +opcontrol --dump +opcontrol --shutdown +opreport -l ./.libs/lt-qpidd > stats.txt +opannotate --source --output-dir=qpidd-prof ./.libs/lt-qpidd + +# clear the relusts +#opcontrol --reset -- cgit v1.2.1