~percona-toolkit-dev/percona-toolkit/fix-change-master-bug-932614

« back to all changes in this revision

Viewing changes to t/lib/samples/log_splitter.pl

  • Committer: Daniel Nichter
  • Date: 2011-06-24 17:22:06 UTC
  • Revision ID: daniel@percona.com-20110624172206-c7q4s4ad6r260zz6
Add lib/, t/lib/, and sandbox/.  All modules are updated and passing on MySQL 5.1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env perl
 
2
 
 
3
use strict;
 
4
require '../LogSplitter.pm';
 
5
require '../SlowLogParser.pm';
 
6
 
 
7
my $lp = new SlowLogParser();
 
8
my $ls = new LogSplitter(
 
9
   attribute  => 'Thread_id',
 
10
   saveto_dir => "/tmp/logettes/",
 
11
   lp         => $lp,
 
12
   verbose    => 1,
 
13
);
 
14
 
 
15
my @logs;
 
16
push @logs, split(',', $ARGV[0]) if @ARGV;
 
17
$ls->split_logs(\@logs);
 
18
 
 
19
exit;