Thread Memory Leak (9 answers)
Opened by weismat at 2007-05-25 14:39

bloonix
 2007-05-25 21:44
#76925 #76925
User since
2005-12-17
1615 Artikel
HausmeisterIn
[Homepage]
user image
Wenn du hier und da schauen möchtest, was dein Skript aktuell so macht...

Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use strict;
use warnings;
use Sys::Statistics::Linux;
use Data::Dumper;

my $pid = $$;

my $lxs = Sys::Statistics::Linux->new(
  Processes => {
     init => 1,
     pids => [ $pid ]
  }
);

sleep 1;

my $stat = $lxs->get->{Processes}->{$pid};
print Dumper($stat);


---
Edit: vorausgesetzt du nutzt ein Linux\n\n

<!--EDIT|opi|1180177349-->
What is a good module? That's hard to say.
What is good code? That's also hard to say.
One man's Thing of Beauty is another's man's Evil Hack.

View full thread Memory Leak