[Swift-commit] r2891 - in trunk: . libexec/log-processing

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Wed Apr 29 04:55:04 CDT 2009


Author: benc
Date: 2009-04-29 04:55:04 -0500 (Wed, 29 Apr 2009)
New Revision: 2891

Added:
   trunk/libexec/log-processing/log-to-compound-transitions
Modified:
   trunk/build.xml
   trunk/libexec/log-processing/makefile
Log:
log-processing of compound procedure logs

Modified: trunk/build.xml
===================================================================
--- trunk/build.xml	2009-04-28 12:57:59 UTC (rev 2890)
+++ trunk/build.xml	2009-04-29 09:55:04 UTC (rev 2891)
@@ -154,6 +154,7 @@
 		<chmod perm="+x" file="${dist.dir}/libexec/log-processing/log-to-execute2-transitions"/>
 		<chmod perm="+x" file="${dist.dir}/libexec/log-processing/log-to-initshareddir-transitions"/>
 		<chmod perm="+x" file="${dist.dir}/libexec/log-processing/log-to-karatasks-transitions"/>
+		<chmod perm="+x" file="${dist.dir}/libexec/log-processing/log-to-compound-transitions"/>
 		<chmod perm="+x" file="${dist.dir}/libexec/log-processing/logs-for-all"/>
 		<chmod perm="+x" file="${dist.dir}/libexec/log-processing/lookup-colour"/>
 		<chmod perm="+x" file="${dist.dir}/libexec/log-processing/max-duration"/>

Added: trunk/libexec/log-processing/log-to-compound-transitions
===================================================================
--- trunk/libexec/log-processing/log-to-compound-transitions	                        (rev 0)
+++ trunk/libexec/log-processing/log-to-compound-transitions	2009-04-29 09:55:04 UTC (rev 2891)
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+# this will take a log file and produce a set of state transition
+# events for every compound procedure
+
+# 2009-04-29 10:46:36,072+0200 INFO  compound STARTCOMPOUND thread=0 name=compound
+# 2009-04-29 10:46:36,398+0200 INFO  compound ENDCOMPOUND thread=0
+
+grep ' STARTCOMPOUND ' $1 | iso-to-secs | \
+sed 's/^\(.*\) INFO  [^ ]* STARTCOMPOUND thread=\([0-9\-]*\) name=\([^ ]*\).*$/\1 \2 START \3/' 
+
+grep ' ENDCOMPOUND ' $1 | iso-to-secs | \
+sed 's/^\(.*\) INFO  [^ ]* ENDCOMPOUND thread=\([0-9\-]*\).*$/\1 \2 END/' 
+
+


Property changes on: trunk/libexec/log-processing/log-to-compound-transitions
___________________________________________________________________
Name: svn:executable
   + *

Modified: trunk/libexec/log-processing/makefile
===================================================================
--- trunk/libexec/log-processing/makefile	2009-04-28 12:57:59 UTC (rev 2890)
+++ trunk/libexec/log-processing/makefile	2009-04-29 09:55:04 UTC (rev 2891)
@@ -97,6 +97,9 @@
 dostageout.transitions: $(LOG)
 	log-to-dostageout-transitions < $(LOG) > dostageout.transitions
 
+compound.transitions: $(LOG)
+	log-to-compound-transitions $(LOG) > compound.transitions
+
 ## retry analysis
 
 jobs.retrycount.summary: execute2.event




More information about the Swift-commit mailing list