Ignore:
Timestamp:
Oct 1, 2010, 9:22:20 PM (14 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.10, release-1.7, release-1.8, release-1.9
Children:
afaef6e
Parents:
385cce2
git-author:
David Benjamin <davidben@mit.edu> (09/25/10 02:02:45)
git-committer:
David Benjamin <davidben@mit.edu> (10/01/10 21:22:20)
Message:
Track names along with timers, add :show timers

This will help people with BarnOwls eating CPU to diagnose timer leaks.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • perl/lib/BarnOwl/Timer.pm

    r8d16e58 rc6adf17  
    1313    my $self = {cb => $cb};
    1414
     15    my $name = $args->{name};
     16    $name = "(unnamed)" unless defined $name;
     17
    1518    bless($self, $class);
    1619
    1720    $self->{timer} = BarnOwl::Internal::add_timer($args->{after} || 0,
    1821                                                  $args->{interval} || 0,
    19                                                   $self);
     22                                                  $self,
     23                                                  $name);
    2024    return $self;
    2125}
Note: See TracChangeset for help on using the changeset viewer.