[p4] Can I query perforce database to figure out histogram ofcheckin's versue time of day?
Vinny Murphy (vmurphy)
vmurphy at cisco.com
Wed Jul 11 17:27:21 PDT 2007
Hi Bill,
You could use perl to parse the output of "p4 changes -t". Something
like:
#!/usr/bin/perl
use strict;
my $max = shift || 1000;
open(CHANGES, "p4 changes -t -m $max |") || die;
my %hour;
while (<CHANGES>) {
$hour{$1}++ if m!^Change \d+ on \d{4}/\d\d/\d\d (\d\d):\d\d\:\d\d!;
}
foreach my $k (sort {$a <=> $b} keys %hour) {
print "$k: ", "*" x $hour{$k}, "\n";
}
-----Original Message-----
From: perforce-user-bounces at perforce.com
[mailto:perforce-user-bounces at perforce.com] On Behalf Of William Deegan
Sent: Wednesday, July 11, 2007 7:19 PM
To: Perforce Users
Subject: [p4] Can I query perforce database to figure out histogram
ofcheckin's versue time of day?
Greetings,
See subject.
Can I query perforce database to figure out histogram of checkin's
versue time of day?
Thanks,
Bill
_______________________________________________
perforce-user mailing list - perforce-user at perforce.com
http://maillist.perforce.com/mailman/listinfo/perforce-user
More information about the perforce-user
mailing list