Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Public Member Functions | Static Public Attributes
CallTree Class Reference

Public Member Functions

def __init__
 
def calls
 
def getParent
 
def __repr__
 

Static Public Attributes

 ROOT None
 

Detailed Description

This class provides a tree representation of the functions
    call stack. If a function has no parent in the kernel (interrupt,
    syscall, kernel thread...) then it is attached to a virtual parent
    called ROOT.

Definition at line 27 of file draw_functrace.py.

Constructor & Destructor Documentation

def __init__ (   self,
  func,
  time = None,
  parent = None 
)

Definition at line 35 of file draw_functrace.py.

Member Function Documentation

def __repr__ (   self)

Definition at line 67 of file draw_functrace.py.

def calls (   self,
  func,
  calltime 
)
If a function calls another one, call this method to insert it
    into the tree at the appropriate place.
    @return: A reference to the newly created child node.

Definition at line 44 of file draw_functrace.py.

def getParent (   self,
  func 
)
Retrieve the last parent of the current node that
    has the name given by func. If this function is not
    on a parent, then create it as new child of root
    @return: A reference to the parent.

Definition at line 53 of file draw_functrace.py.

Field Documentation

ROOT None
static

Definition at line 33 of file draw_functrace.py.


The documentation for this class was generated from the following file: