Module Expr Str Import alias Import alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Dict Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr ListComp Call AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler body Raise Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body For NameStore AttributeLoad NameLoad attr body Print NameLoad decorator_list FunctionDef arguments args NameParam defaults body For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Print NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If NameLoad body Assign NameStore Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr Num attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Str If Call AttributeLoad NameLoad attr Num body Assign NameStore Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad Str attr TupleLoad NameLoad NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list If CompareEq NameLoad Str body ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr For NameStore NameLoad body Assign NameStore Call NameLoad NameLoad Print AttributeLoad NameLoad attr
N/A N/A 
Created on Aug 15, 2011

@organization: cert.org
 N/A re N/A logging N/A CallgrindAnnotateNoOutputFileError N/A logger N/A N/A logging getLogger __name__ N/A N/A N/A logger setLevel N/A logging INFO AnnotationFile N/A object N/A N/A 
    Annotation File object. Reads in a callgrind annotation file and parses it into a dict (self.coverage)
     __init__ N/A N/A self f N/A N/A N/A N/A self file f N/A N/A self lines None N/A N/A N/A self _read N/A N/A self coverage N/A N/A N/A N/A self process_lines N/A _read N/A N/A self N/A N/A N/A N/A N/A fd N/A open N/A self file r N/A N/A self lines N/A N/A N/A l strip N/A l N/A N/A fd readlines N/A N/A N/A N/A N/A CallgrindAnnotateNoOutputFileError N/A self file N/A print_lines N/A N/A self N/A N/A N/A l N/A self lines N/A N/A l N/A print_coverage N/A N/A self N/A N/A N/A N/A k v N/A N/A N/A self coverage iteritems N/A N/A k v N/A process_coverage_line N/A N/A self line N/A N/A N/A m N/A N/A re match ([\d,]+)\s+([^:]+):(.+)\s+\[([^]]*)\] line N/A m N/A N/A count N/A int N/A N/A N/A N/A m group 1 replace , N/A filematch N/A N/A m group 2 N/A func N/A N/A m group 3 N/A lib N/A N/A N/A m group 4 N/A N/A lib N/A N/A m group 4 N/A N/A N/A logger debug COUNT=%d FILE=%s FUNC=%s LIB=%s count filematch func lib N/A key N/A N/A : join N/A lib filematch func N/A N/A N/A self coverage N/A key count N/A N/A N/A N/A logger debug N/A Unprocessed: %s line N/A process_lines N/A N/A self N/A N/A N/A line N/A self lines N/A N/A N/A N/A self process_coverage_line line N/A N/A N/A N/A __name__ __main__ N/A optparse OptionParser N/A hdlr N/A N/A logging StreamHandler N/A N/A N/A logger addHandler hdlr N/A parser N/A OptionParser N/A N/A N/A parser add_option --debug dest debug action store_true help Enable debug messages (overrides --verbose) N/A N/A N/A parser add_option --outfile dest outfile help file to write output to N/A N/A options args N/A N/A parser parse_args N/A arg args N/A N/A a N/A AnnotationFile arg N/A N/A a __dict__