Differences From:
File
tools/cvs2fossil/getmemoryseries.tcl
part of check-in
[8287044ecd]
- Created a memory tracking subsystem to investigate memory consumption of the system in general, and pass InitCsets in particular. getmemory series is a postprocessor pulling the data out of the log and into a tables gnuplot is able to handle.
by
aku on
2008-02-16 06:43:54.
[view]
To:
File
tools/cvs2fossil/getmemoryseries.tcl
part of check-in
[f46458d5bd]
- Reworked the basic structure of pass InitCSets to keep memory consumption down. Now incremental creates, breaks, saves, and releases changesets, instead of piling them on before saving all at the end. Memory tracking confirms that this changes the accumulating mountain into a near-constant usage, with the expected spikes from the breaking.
by
aku on
2008-02-17 02:06:19.
[view]
@@ -2,9 +2,9 @@
# -*- tcl -*- \
exec tclsh "$0" ${1+"$@"}
package require csv
-foreach {in outbasic outmarker plot} $argv break
+foreach {in outbasic outmarker plot outbasicold} $argv break
set in [open $in r]
set ba [open $outbasic w]
set mr [open $outmarker w]
@@ -43,8 +43,17 @@
set f [open $plot w]
puts $f ""
puts $f "plot \"$outbasic\" using 1:2 title 'Memory' with steps, \\"
puts $f " \"$outbasic\" using 1:3 title 'Max Memory' with steps"
+puts $f "pause -1"
+puts $f ""
+close $f
+
+# Generate gnuplot control file for comparison of series
+set f [open ${plot}-compare w]
+puts $f ""
+puts $f "plot \"$outbasicold\" using 1:2 title 'Memory Old' with steps, \\"
+puts $f " \"$outbasic\" using 1:2 title 'Memory New' with steps"
puts $f "pause -1"
puts $f ""
close $f
exit