2013-08-29 14:21:13 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# (c)2010-2012 the Boeing Company
|
|
|
|
# author: Yueli Yang <yueli.yang@boeing.com>
|
|
|
|
#
|
|
|
|
# start core performance logging and collect output to file
|
|
|
|
# /tmp/pycore.nnnn/perf<sessionid>.log
|
2018-10-12 10:13:02 -07:00
|
|
|
HOOKS_DIR=$(dirname $0)
|
2013-08-29 14:21:13 +00:00
|
|
|
|
2018-10-12 10:13:02 -07:00
|
|
|
sid=$(pwd | awk -F / {'print $3'} | awk -F . {'print $2'})
|
2013-08-29 14:21:13 +00:00
|
|
|
python $HOOKS_DIR/perflogserver.py -t -a -c /etc/core/perflogserver.conf -s $sid > perf$sid.log &
|