core-extra/scripts/perf/perflogstart.sh

11 lines
373 B
Bash
Raw Normal View History

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