trace.py
Returns if given object is read only ( built-in or extension ).
Parameters: | object (object) – Object. |
---|---|
Returns: | Is object read only. |
Return type: | bool |
Sets given object tracer hook on given object.
Parameters: | |
---|---|
Returns: | Definition success. |
Return type: | bool |
Returns given object tracer hook.
Parameters: | object (object) – Object. |
---|---|
Returns: | Object tracer hook. |
Return type: | object |
Returns if given object is traced.
Parameters: | object (object) – Object. |
---|---|
Returns: | Is object traced. |
Return type: | bool |
Returns if given class has a traced base.
Parameters: | cls (object) – Class. |
---|---|
Returns: | Is base traced. |
Return type: | bool |
Returns if given object is untracable.
Parameters: | object (object) – Object. |
---|---|
Returns: | Is object untracable. |
Return type: | bool |
Sets given object as traced.
Parameters: | object (object) – Object. |
---|---|
Returns: | Definition success. |
Return type: | bool |
Sets given object as untraced.
Parameters: | object (object) – Object. |
---|---|
Returns: | Definition success. |
Return type: | bool |
Sets given object as untraced.
Parameters: | object (object) – Object. |
---|---|
Returns: | Definition success. |
Return type: | bool |
Defines a generator used to walk into modules.
Parameters: | module (ModuleType) – Module to walk. |
---|---|
Returns: | Class / Function / Method. |
Return type: | object or object |
Returns given object name.
Parameters: | object (object) – Object to retrieve the name. |
---|---|
Returns: | Object name. |
Return type: | unicode |
Returns given object trace name.
Parameters: | object (object) – Object. |
---|---|
Returns: | Object trace name. |
Return type: | unicode |
Returns given method name.
Parameters: | method (object) – Method to retrieve the name. |
---|---|
Returns: | Method name. |
Return type: | unicode |
Returns if given method is a static method.
Parameters: | method (object) – Method. |
---|---|
Returns: | Is static method. |
Return type: | bool |
Returns if given method is a class method.
Parameters: | method (object) – Method. |
---|---|
Returns: | Is class method. |
Return type: | bool |
Returns a string representing an argument / value pair.
Usage:
>>> formatArgument(('x', (0, 1, 2)))
u'x=(0, 1, 2)'
Parameters: | argumentValue (tuple) – Argument / value pair. |
---|---|
Returns: | Formatted .argument / value pair. |
Return type: | unicode |
Validate and finishes a tracer by adding mandatory extra attributes.
Parameters: | *args (*) – Arguments. |
---|---|
Returns: | Validated wrapped object. |
Return type: | object |
Parameters: | object (object) – Object to decorate. |
---|---|
Returns: | Object. |
Return type: | object |
Object is used to untrace given object.
Parameters: | object (object) – Object to untrace. |
---|---|
Returns: | Untraced object. |
Return type: | object |
Marks decorated object as non tracable.
Parameters: | object (object) – Object to decorate. |
---|---|
Returns: | Object. |
Return type: | object |
Traces given module function using given tracer.
Parameters: | |
---|---|
Returns: | Definition success. |
Return type: | bool |
Untraces given module function.
Parameters: | |
---|---|
Returns: | Definition success. |
Return type: | bool |
Traces given class method using given tracer.
Parameters: | |
---|---|
Returns: | Definition success. |
Return type: | bool |
Untraces given class method.
Parameters: | |
---|---|
Returns: | Definition success. |
Return type: | bool |
Traces given class property using given tracer.
Parameters: | |
---|---|
Returns: | Definition success. |
Return type: | bool |
Untraces given class property.
Parameters: | |
---|---|
Returns: | Definition success. |
Return type: | bool |
Traces given class using given tracer.
Parameters: | |
---|---|
Returns: | Definition success. |
Return type: | bool |
Untraces given class.
Parameters: | cls (object) – Class to untrace. |
---|---|
Returns: | Definition success. |
Return type: | bool |
Traces given module members using given tracer.
Parameters: | |
---|---|
Returns: | Definition success. |
Return type: | bool |
Note: | Only members exported by __all__ attribute will be traced. |
Untraces given module members.
Parameters: | module (ModuleType) – Module to untrace. |
---|---|
Returns: | Definition success. |
Return type: | bool |
Registers given module or caller introspected module in the candidates modules for tracing.
Parameters: | module (ModuleType) – Module to register. |
---|---|
Returns: | Definition success. |
Return type: | bool |
Installs given tracer in the candidates modules for tracing matching given pattern.
Parameters: | |
---|---|
Returns: | Definition success. |
Return type: | bool |
Installs the tracer in the candidates modules for tracing matching given pattern.
Parameters: | |
---|---|
Returns: | Definition success. |
Return type: | bool |
Evaluate given string trace request.
Usage:
Umbra -t "{'umbra.engine' : ('.*', 0), 'umbra.preferences' : (r'.*', 0)}"
Umbra -t "['umbra.engine', 'umbra.preferences']"
Umbra -t "'umbra.engine, umbra.preferences"
Parameters: | |
---|---|
Returns: | Definition success. |
Return type: | bool |