File: devel_leaktrace.pl

package info (click to toggle)
libtest-leaktrace-perl 0.17-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 360 kB
  • sloc: ansic: 3,215; perl: 687; makefile: 8
file content (25 lines) | stat: -rw-r--r-- 330 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!perl -w
use strict;
use Benchmark qw();
our $t;
BEGIN{	$t = Benchmark->new; }
END{	print 'time: ', Benchmark->new->timediff($t)->timestr, "\n"; }

use Devel::LeakTrace;

use ExtUtils::MakeMaker (); # a large module

{
	my %hash;
	for(1 .. 1000){
		$hash{$_}++;
		$hash{$_}++;
	}

	my %a;
	my %b;

	$a{b} = \%a;
	$b{a} = \%b;
}