Package modules :: Package processing :: Module behavior :: Class ParseProcessLog
[hide private]
[frames] | no frames]

Class ParseProcessLog

source code

object --+    
         |    
      list --+
             |
            ParseProcessLog

Parses process log file.

Instance Methods [hide private]
new empty list
__init__(self, log_path)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
parse_first_and_reset(self) source code
 
read(self, length) source code
 
__iter__(self)
iter(x)
source code
 
__repr__(self)
repr(x)
source code
 
__nonzero__(self) source code
 
reset(self) source code
 
compare_calls(self, a, b)
Compare two calls for equality.
source code
 
wait_for_lastcall(self) source code
 
next(self) source code
 
log_process(self, context, timestring, pid, ppid, modulepath, procname) source code
 
log_thread(self, context, pid) source code
 
log_call(self, context, apiname, category, arguments) source code
 
log_error(self, emsg) source code
 
_parse(self, row)
Parse log row.
source code

Inherited from list: __add__, __contains__, __delitem__, __delslice__, __eq__, __ge__, __getattribute__, __getitem__, __getslice__, __gt__, __iadd__, __imul__, __le__, __len__, __lt__, __mul__, __ne__, __new__, __reversed__, __rmul__, __setitem__, __setslice__, __sizeof__, append, count, extend, index, insert, pop, remove, reverse, sort

Inherited from object: __delattr__, __format__, __reduce__, __reduce_ex__, __setattr__, __str__, __subclasshook__

Class Variables [hide private]

Inherited from list: __hash__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, log_path)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • log_path - log file path.
Returns: new empty list
Overrides: object.__init__

__iter__(self)

source code 

iter(x)

Overrides: list.__iter__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)

compare_calls(self, a, b)

source code 

Compare two calls for equality. Same implementation as before netlog.

Parameters:
  • a - call a
  • b - call b
Returns:
True if a == b else False

_parse(self, row)

source code 

Parse log row.

Parameters:
  • row - row data.
Returns:
parsed information dict.