fault.kernel

Formatting routines for representing processor hierarchies.

sys
import

collections0
import

functools0
import

inspect0
import

itertools0
import

traceback0
import

perspectives130%
function

perspectives(resource)

Return the stack of structures used for Resource introspection.

Traverses the MRO of the resource class and executes the structure method; the corresponding class, properties, and subresources are then appended to a list describing the Resource from the perspective of each class.

Returns [(Class, properties, subresources), ...].

sequence150%
function

sequence(identity, resource, perspective, traversed)

Convert the structure tree of a Resource into a sequence of tuples to be formatted for display.

format460%
function

format(identity, resource)

Format the Resource tree in fault.text.