[Swift-commit] r4492 - trunk/libexec/log-processing

wozniak at ci.uchicago.edu wozniak at ci.uchicago.edu
Wed May 18 15:33:18 CDT 2011


Author: wozniak
Date: 2011-05-18 15:33:17 -0500 (Wed, 18 May 2011)
New Revision: 4492

Modified:
   trunk/libexec/log-processing/makefile.implicit
Log:
Start on some plotting conventions


Modified: trunk/libexec/log-processing/makefile.implicit
===================================================================
--- trunk/libexec/log-processing/makefile.implicit	2011-05-18 20:23:04 UTC (rev 4491)
+++ trunk/libexec/log-processing/makefile.implicit	2011-05-18 20:33:17 UTC (rev 4492)
@@ -1,3 +1,15 @@
+
+# All new intermediate files will contain ".plot."
+# Original logs are assumed to end with ".log"
+
+# Known file types:
+# NAME.log  : The original log.
+# NAME.plot.iso : A Swift log with the timestamps transformed
+#             to unix time format
+# NAME.plot.start : A simple file containing the unix start time
+# NAME.plot.norm : Swift log with the timestamps relative to the
+#                  first event time
+
 %.lastsummary: %.last
 	cat $< | sed 's/^\([^ ]*\) \([^ ]*\) \([^ ]*\)\(.*\)/\3/' | sort | uniq -c > $@
 
@@ -43,3 +55,11 @@
 %.eip: %.event
 	events-in-progress < $< > $@
 
+%.plot.time: %.log
+	iso-to-secs < $(<) > $(@)
+
+%.plot.start: %.log
+	extract-start-time $(<) > $(@)
+
+%.plot.norm: %.plot.start %.plot.time
+	normalize-log.pl $(^) > $(@)




More information about the Swift-commit mailing list