Debian Codegraph @

tools/leak.pl

raw symbols SCIP
1 #!/usr/bin/env perl
2
3 use lib qw(blib/lib blib/arch);
4 use Audio::Scan;
5 use Time::HiRes qw(sleep);
6
7 my $file = shift;
8
9 $ENV{AUDIO_SCAN_NO_ARTWORK} = 1;
10
11 for ( 1..50000 ) {
12 my $s = Audio::Scan->scan($file);
13
14 # Also test in no artwork mode
15 #{
16 # local $ENV{AUDIO_SCAN_NO_ARTWORK} = 1;
17 # $s = Audio::Scan->scan($file);
18 #}
19
20 # Test find_frame doesn't leak
21 if ( $file =~ /\.m4a$/ ) {
22 Audio::Scan->find_frame_return_info( $file, 10 );
23 }
24 else {
25 Audio::Scan->find_frame( $file, 10 );
26 }
27
28 sleep 0.001;
29 }