Skip to content

Commit 083fe20

Browse files
author
Archit Sharma
committed
V0.5: bugfixes; update README
1 parent edbe30f commit 083fe20

File tree

4 files changed

+21
-11
lines changed

4 files changed

+21
-11
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,15 @@ a set of utilities,which is provided under the package [perf-tools](https://gith
88

99
## INSTALLATION
1010

11-
Install from pip: `$ pip2 install perf-script-postprocessor`
11+
Step 1: Install from pip: `$ pip2 install perf-script-postprocessor`
12+
13+
Step 2: Copy [this conf file](https://raw.githubusercontent.com/arcolife/perf-script-postprocessor/master/delta_processor.conf)
14+
into /etc/
15+
16+
Step 3: Customize the conf file accordingly.
17+
18+
Optional:
19+
Step 4: Refer to docs/WIKI.md or [this page](https://github.com/arcolife/perf-script-postprocessor/wiki) for detailed usage.
1220

1321
For more, refer to `INSTALL` guide.
1422

RELEASE-NOTES

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--------------------------------------------------------------------
2-
perf-script-postprocessor v0.4
2+
perf-script-postprocessor
33
released on Oct 15, 2015
44
http://arcolife.github.io/perf-script-postprocessor/
55
--------------------------------------------------------------------
@@ -11,18 +11,13 @@ and this one to be installed from scratch. Refer to the documentation.
1111
What's new:
1212
-----------
1313

14-
*) pip packaging
14+
*) bugfixes in perf_script_processor
1515

1616
Future Plans:
1717
-------------
1818

1919
*) Better use of reason part of `perf script` output to provide detailed statistics
2020

21-
Download:
22-
---------
23-
tarball <https://github.com/arcolife/perf-script-postprocessor/archive/v0.4.tar.gz>
24-
zipball <https://github.com/arcolife/perf-script-postprocessor/archive/v0.4.zip>
25-
2621
Installation notes:
2722
-------------------
2823

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.4
1+
0.5

bin/perf_script_processor

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ while getopts "h?t:p:" opt; do
4040
esac
4141
done
4242

43+
if [ ! -f /etc/delta_processor.conf ]; then
44+
echo "You need to specify configurations under /etc/delta_processor.conf"
45+
exit 1
46+
fi
47+
4348
if [[ -z $DUMP_PATH ]]; then
4449
# defaults to /tmp
4550
DUMP_PATH='/tmp/pp_results/'
@@ -58,6 +63,7 @@ start_pp(){
5863
if [[ ! -z $DUMP_PATH ]]; then
5964
# run postprocessor on that
6065
if [ -f ${DUMP_PATH%/}/perf_data.csv ]; then
66+
echo "Processing perf_data.csv ..."
6167
delta_processor -i ${DUMP_PATH%/}/perf_data.csv \
6268
-o $DUMP_PATH -m 0 -t $skim_opt \
6369
-l ${DUMP_PATH%/}/delta_output.log
@@ -88,13 +94,14 @@ start_pp(){
8894

8995
else
9096
echo "ERROR! one of: perf.data/perf_data.csv/raw_perf is required in path supplied.."
97+
exit 1
9198
fi
99+
echo "logs have been saved to ${DUMP_PATH%/}/delta_output.log"
92100
else
93101
echo "ERROR! You need to specify a dir path where perf.data resides"
94102
echo -e "Usage:\t$ ./perf_script_process.sh <dir where perf.data exists>"
103+
exit 1
95104
fi
96105
}
97106

98-
echo "Processing perf_data.csv ..."
99107
start_pp
100-
echo "logs have been saved to ${DUMP_PATH%/}/delta_output.log"

0 commit comments

Comments
 (0)