Add test programs for ihk_os_getrusage()

This commit is contained in:
Masamichi Takagi
2017-09-20 19:48:32 +09:00
parent 47b4bd5aba
commit 4d9a1628f2
63 changed files with 6461 additions and 0 deletions

20
test/rusage/match.pl Normal file
View File

@@ -0,0 +1,20 @@
#!/usr/bin/perl
while(<>) {
if(/\[\s+\d+\]\:\s([^+^ ]+)\+,/) {
$addr = $1;
$count{$addr}++;
#print $addr . "\n";
}
if(/\[\s+\d+\]\:\s([^-^ ]+)\-,/) {
$addr = $1;
$count{$addr}--;
#print $addr . "\n";
}
}
foreach $key (sort keys(%count)) {
if($count{$key} != 0) {
print $key.",count=".$count{$key}."\n";
}
}