summaryrefslogtreecommitdiffstats
path: root/tests/langbench/hash.tcl
blob: 0b1afa82031a9962ba7345795b8e8e7580076bff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
proc main {} {
	global	argv

	set d [dict create]
	foreach file $argv {
		set f [open $file rb]
		while {[gets $f buf] >= 0} {
			dict set d $buf 1
		}
		close $f
	}
}
main
set f [open "/proc/[pid]/status"]
while {[gets $f buf] >= 0} {
	if {[regexp {^Vm[RD]} $buf]} { puts $buf }
}