Skip to content

Commit

Permalink
V0.5: bugfixes; update README
Browse files Browse the repository at this point in the history
  • Loading branch information
Archit Sharma committed Oct 14, 2015
1 parent edbe30f commit 083fe20
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 11 deletions.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,15 @@ a set of utilities,which is provided under the package [perf-tools](https://gith

## INSTALLATION

Install from pip: `$ pip2 install perf-script-postprocessor`
Step 1: Install from pip: `$ pip2 install perf-script-postprocessor`

Step 2: Copy [this conf file](https://raw.githubusercontent.com/arcolife/perf-script-postprocessor/master/delta_processor.conf)
into /etc/

Step 3: Customize the conf file accordingly.

Optional:
Step 4: Refer to docs/WIKI.md or [this page](https://github.com/arcolife/perf-script-postprocessor/wiki) for detailed usage.

For more, refer to `INSTALL` guide.

Expand Down
9 changes: 2 additions & 7 deletions RELEASE-NOTES
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--------------------------------------------------------------------
perf-script-postprocessor v0.4
perf-script-postprocessor
released on Oct 15, 2015
http://arcolife.github.io/perf-script-postprocessor/
--------------------------------------------------------------------
Expand All @@ -11,18 +11,13 @@ and this one to be installed from scratch. Refer to the documentation.
What's new:
-----------

*) pip packaging
*) bugfixes in perf_script_processor

Future Plans:
-------------

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

Download:
---------
tarball <https://github.com/arcolife/perf-script-postprocessor/archive/v0.4.tar.gz>
zipball <https://github.com/arcolife/perf-script-postprocessor/archive/v0.4.zip>

Installation notes:
-------------------

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.4
0.5
11 changes: 9 additions & 2 deletions bin/perf_script_processor
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ while getopts "h?t:p:" opt; do
esac
done

if [ ! -f /etc/delta_processor.conf ]; then
echo "You need to specify configurations under /etc/delta_processor.conf"
exit 1
fi

if [[ -z $DUMP_PATH ]]; then
# defaults to /tmp
DUMP_PATH='/tmp/pp_results/'
Expand All @@ -58,6 +63,7 @@ start_pp(){
if [[ ! -z $DUMP_PATH ]]; then
# run postprocessor on that
if [ -f ${DUMP_PATH%/}/perf_data.csv ]; then
echo "Processing perf_data.csv ..."
delta_processor -i ${DUMP_PATH%/}/perf_data.csv \
-o $DUMP_PATH -m 0 -t $skim_opt \
-l ${DUMP_PATH%/}/delta_output.log
Expand Down Expand Up @@ -88,13 +94,14 @@ start_pp(){

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

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

0 comments on commit 083fe20

Please sign in to comment.