|
From: Matthieu C. <ma...@us...> - 2005-07-22 14:05:30
|
Update of /cvsroot/nptltracetool/trace/script In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20194 Added Files: contention2 Log Message: ntpl time script --- NEW FILE: contention2 --- #! /usr/bin/gawk -f /* this script try to compute the time spent in NPTL */ /* a summary is display for each thread */ /* you could use -E options to filter only *_IN,*_OUT events */ /* also if -T options is'nt used, be sure to have C locale (LC_ALL=C) */ { if(match($3, ".*_IN$")) { SUM[$7]-=$1; IN[$7]++; /*print "in" $3 */ } if(match($3, ".*_OUT$")) { SUM[$7]+=$1; OUT[$7]++; /*print "out" $3 */ } LAST=$1 } END { for (i in SUM) print "contention for " i " = " SUM[i] " µs," IN[i] " wait, " OUT[i] " wake" ; print "last timestamp: " LAST; } |