File: memory_leak.pl

package info (click to toggle)
libpdl-io-matlab-perl 0.006-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,676 kB
  • sloc: ansic: 19,039; sh: 10,875; makefile: 655; perl: 43
file content (18 lines) | stat: -rw-r--r-- 337 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env perl
use warnings;
use strict;
use PDL;
use PDL::IO::Matlab;
use PDL::NiceSlice;

# test for memory leak.
foreach (0..1000) {
    my $f1 = 'Rep_Carlo_90nm.mat';
    my $mat1 = PDL::IO::Matlab->new($f1, '<');
    my $x = $mat1->read_next;
#    print $x->shape, "\n";
    $mat1->close;
}

print "sleeping...\n";
sleep(100);