[Swift-commit] r3384 - branches/woz-01/libexec/log-processing
noreply at svn.ci.uchicago.edu
noreply at svn.ci.uchicago.edu
Thu Jun 17 11:38:56 CDT 2010
Author: wozniak
Date: 2010-06-17 11:38:56 -0500 (Thu, 17 Jun 2010)
New Revision: 3384
Added:
branches/woz-01/libexec/log-processing/README.txt
Modified:
branches/woz-01/libexec/log-processing/extract-coaster-timeline
branches/woz-01/libexec/log-processing/makefile.coasters
branches/woz-01/libexec/log-processing/normalise-event-start-time
Log:
Probable fixes to coasters plots
Added: branches/woz-01/libexec/log-processing/README.txt
===================================================================
--- branches/woz-01/libexec/log-processing/README.txt (rev 0)
+++ branches/woz-01/libexec/log-processing/README.txt 2010-06-17 16:38:56 UTC (rev 3384)
@@ -0,0 +1,17 @@
+
+USE CASES:
+
+* Plot coasters utilization
+
+PLOT_HOME=/scratch/wozniak/cog/modules/swift/libexec/log-processing
+
+make -f ${PLOT_HOME}/makefile.coasters LOG=./map-20100606-2328-nv9xntzg.log SWIFT_PLOT_HOME=${PLOT_HOME} coaster-block-timeline.png
+
+TODO:
+
+* Rename all shell scripts to *.sh
+* Rename *.makefile to *.mk
+* Rename makefile to main.mk
+* Stop using *.data - this clobbers tc.data
+* Rename temporary files to *.log.ptmp (plot-temporary)
+ *.data.ptmp
Modified: branches/woz-01/libexec/log-processing/extract-coaster-timeline
===================================================================
--- branches/woz-01/libexec/log-processing/extract-coaster-timeline 2010-06-17 12:37:46 UTC (rev 3383)
+++ branches/woz-01/libexec/log-processing/extract-coaster-timeline 2010-06-17 16:38:56 UTC (rev 3384)
@@ -6,7 +6,7 @@
grep "RemoteLogHandler BLOCK_" < $LOG > blocks.log.tmp
-iso-to-secs < $LOG > secs.log.tmp
+iso-to-secs < blocks.log.tmp > secs.log.tmp
head -1 secs.log.tmp | awk '{ print $1 }' > start-time.tmp
Modified: branches/woz-01/libexec/log-processing/makefile.coasters
===================================================================
--- branches/woz-01/libexec/log-processing/makefile.coasters 2010-06-17 12:37:46 UTC (rev 3383)
+++ branches/woz-01/libexec/log-processing/makefile.coasters 2010-06-17 16:38:56 UTC (rev 3384)
@@ -4,7 +4,7 @@
coaster-block-timeline.data: coasters.tmp
extract-coaster-blocks coasters.tmp
-coasters.tmp:
+coasters.tmp: $(LOG)
extract-coaster-timeline $(LOG)
# block-count-table.tmp: extract-timeline
Modified: branches/woz-01/libexec/log-processing/normalise-event-start-time
===================================================================
--- branches/woz-01/libexec/log-processing/normalise-event-start-time 2010-06-17 12:37:46 UTC (rev 3383)
+++ branches/woz-01/libexec/log-processing/normalise-event-start-time 2010-06-17 16:38:56 UTC (rev 3384)
@@ -1,4 +1,3 @@
#!/bin/bash
normalise-event-start-time-to-any $(cat start-time.tmp);
-
More information about the Swift-commit
mailing list