Module pyinotify :: Class Stats
[hide private]
[frames] | no frames]

Class Stats

source code


Compute and display trivial statistics about processed events.

Instance Methods [hide private]
 
my_init(self)
Method automatically called from base class constructor.
source code
 
process_default(self, event)
Processes |event|.
source code
 
_stats_copy(self) source code
 
__repr__(self)
repr(x)
source code
 
dump(self, filename)
Dumps statistics.
source code
 
__str__(self, scale=45)
str(x)
source code

Inherited from ProcessEvent: __call__, __init__, nested_pevent, process_IN_Q_OVERFLOW

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Class Variables [hide private]

Inherited from ProcessEvent: pevent

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

my_init(self)

source code 

Method automatically called from base class constructor.

Parameters:
  • kargs - optional delegated arguments from __init__().
Overrides: ProcessEvent.my_init

process_default(self, event)

source code 

Processes |event|.

Parameters:
  • event - Event to be processed. Can be of any type of events but IN_Q_OVERFLOW events (see method process_IN_Q_OVERFLOW).
Overrides: ProcessEvent.process_default

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)

dump(self, filename)

source code 

Dumps statistics.

Parameters:
  • filename (string) - filename where stats will be dumped, filename is created and must not exist prior to this call.

__str__(self, scale=45)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)