2013-08-29 15:21:13 +01: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 18:13:02 +01:00
|
|
|
HOOKS_DIR=$(dirname $0)
|
2013-08-29 15:21:13 +01:00
|
|
|
|
2018-10-12 18:13:02 +01:00
|
|
|
sid=$(pwd | awk -F / {'print $3'} | awk -F . {'print $2'})
|
2013-08-29 15:21:13 +01:00
|
|
|
python $HOOKS_DIR/perflogserver.py -t -a -c /etc/core/perflogserver.conf -s $sid > perf$sid.log &
|