ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Coro/Coro/Debug.pm
(Generate patch)

Comparing Coro/Coro/Debug.pm (file contents):
Revision 1.37 by root, Thu Oct 4 19:35:08 2007 UTC vs.
Revision 1.38 by root, Fri Oct 5 13:12:55 2007 UTC

26 26
27 state 27 state
28 |cctx allocated 28 |cctx allocated
29 || resident set size (kb) 29 || resident set size (kb)
30 > ps || | 30 > ps || |
31 pid SS RSS description where 31 PID SS RSS Description Where
32 11014896 US 835 [main::] [/opt/cf/ext/dm-support.ext:45] 32 11014896 US 835 [main::] [/opt/cf/ext/dm-support.ext:45]
33 11015088 -- 2 [coro manager] [/opt/perl/lib/perl5/Coro.pm:170] 33 11015088 -- 2 [coro manager] [/opt/perl/lib/perl5/Coro.pm:170]
34 11015408 -- 2 [unblock_sub schedul [/opt/perl/lib/perl5/Coro.pm:548] 34 11015408 -- 2 [unblock_sub schedul [/opt/perl/lib/perl5/Coro.pm:548]
35 15607952 -- 2 timeslot manager [/opt/cf/cf.pm:382] 35 15607952 -- 2 timeslot manager [/opt/cf/cf.pm:382]
36 18492336 -- 5 player scheduler [/opt/cf/ext/login.ext:501] 36 18492336 -- 5 player scheduler [/opt/cf/ext/login.ext:501]
254 my ($cmd) = @_; 254 my ($cmd) = @_;
255 255
256 $cmd =~ s/\s+$//; 256 $cmd =~ s/\s+$//;
257 257
258 if ($cmd =~ /^ps$/) { 258 if ($cmd =~ /^ps$/) {
259 printf "%20s %s%s %4s %4s %-24.24s %s\n", "pid", "S", "S", "RSS", "USES", "description", "where"; 259 printf "%20s %s%s %4s %4s %-24.24s %s\n", "PID", "S", "S", "RSS", "USES", "Description", "Where";
260 for my $coro (reverse Coro::State::list) { 260 for my $coro (reverse Coro::State::list) {
261 Coro::cede; 261 Coro::cede;
262 my @bt; 262 my @bt;
263 Coro::State::call ($coro, sub { 263 Coro::State::call ($coro, sub {
264 # we try to find *the* definite frame that gives msot useful info 264 # we try to find *the* definite frame that gives msot useful info

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines