MCPcopy Create free account

hub / github.com/4rtzel/tfg / functions

Functions67 in github.com/4rtzel/tfg

↓ 7 callersFunctionfit_string
fit_string(text: str, width: int, ws_filler: str) Fit a 'text' string inside [0, width) range. Use ws_filler as a white space filler.
tfg/browser/visualtree.py:17
↓ 5 callersMethodlink_frames
Link left and right frames.
tfg/browser/visualtree.py:101
↓ 5 callersMethodrebuild_tree
Rebuild the whole tree. Use start_vf as a zoomed frame.
tfg/browser/visualtree.py:90
↓ 4 callersMethod_init_pairs
(self, gradient_list, light_color, normal_color, dark_color)
tfg/browser/palette.py:76
↓ 3 callersFunctioncalculate_width
calculate_width(count: int, parent_count: int, parent_width: int) Calculate string width based on parent width and sample count.
tfg/browser/visualtree.py:26
↓ 3 callersFunctiontrim_offset
_trim_offset(name: str) -> str Remove address offset from name. Example: some_function+0x42beef -> some_function
tfg/stackcollapsers/stackcollapser.py:7
↓ 2 callersMethodbfs_traversal
Return breadth-first search traversal iterator.
tfg/browser/visualtree.py:118
↓ 1 callersMethod_create_start_vf
Create start visual frame.
tfg/browser/visualtree.py:161
↓ 1 callersMethod_create_vf
Create a visual frame.
tfg/browser/visualtree.py:219
↓ 1 callersMethod_create_vf_children
Create children for 'vf' from 'cf.frames'.
tfg/browser/visualtree.py:183
↓ 1 callersMethod_draw_frame
(self, vf, y)
tfg/browser/terminal.py:80
↓ 1 callersMethod_dump
(self, cf, callstack)
tfg/calltree/calltree.py:74
↓ 1 callersMethod_get_or_create_frame
(self, start_frame, frames)
tfg/calltree/calltree.py:93
↓ 1 callersMethod_init_256
Initialize palette for 256-colors terminals
tfg/browser/palette.py:36
↓ 1 callersMethod_init_8
Initialize palette for 8-colors terminals
tfg/browser/palette.py:46
↓ 1 callersMethod_insert_frame
(self, start_frame, frames, count)
tfg/calltree/calltree.py:83
↓ 1 callersMethodadd_stack
add_stack(self, frames: list[str], count: int) Add frames to the tree with sample count.
tfg/calltree/calltree.py:54
↓ 1 callersMethoddisplay
(self)
tfg/browser/terminal.py:270
↓ 1 callersMethoddraw
(self)
tfg/browser/terminal.py:156
↓ 1 callersMethoddump
Dump tree to stdout. This should produce the same output as any stackcollapse*.pl from https://github.com/brendangregg/FlameGraph.
tfg/calltree/calltree.py:67
↓ 1 callersFunctionextract_comm
_extract_comm(self, fields: list[str]) -> str Extract a command name (commonly used as 'comm') from fields Examples: ['Web', '123', '
tfg/stackcollapsers/perfcollapser.py:51
↓ 1 callersFunctionextract_stack_name
_extract_stack_name(self, fields: list[str]) -> str Extract a stack name from the fields Examples: ffffffff818244f2 [unknown] ([kerne
tfg/stackcollapsers/perfcollapser.py:61
↓ 1 callersMethodgradient
Infinitely colors generator
tfg/browser/palette.py:58
↓ 1 callersMethodlevel_traversal
Return level traversal iterator.
tfg/browser/visualtree.py:129
↓ 1 callersFunctionmain
()
tfg/main.py:41
↓ 1 callersFunctionpairwise
Return an iterator to a pair s[] -> (s[0], s[1]), (s[2], s[3]), (s[4], s[5]), ...
tfg/browser/visualtree.py:8
↓ 1 callersMethodparse
parse(self) -> list[(list[str], int)]
tfg/stackcollapsers/perfcollapser.py:24
↓ 1 callersFunctionprocess_args
(args)
tfg/main.py:27
↓ 1 callersMethodprocess_input
(self, stdscr)
tfg/browser/terminal.py:173
↓ 1 callersFunctionto_module_name
_to_module_name(self, field: str) -> str Convert module name to match syntax used in https://github.com/brendangregg/FlameGraph Examples:
tfg/stackcollapsers/perfcollapser.py:74
Method__init__
(self, vft, palette, ws_filler)
tfg/browser/terminal.py:22
Method__init__
(self, stdscr, context)
tfg/browser/terminal.py:45
Method__init__
(self, stdscr, context)
tfg/browser/terminal.py:150
Method__init__
(self, stdscr, context)
tfg/browser/terminal.py:182
Method__init__
(self, call_tree, ws_filler, palette_type)
tfg/browser/terminal.py:262
Method__init__
(self, x, y, count, width, text, pvf=None, lvf=None, rvf=None, cf=None)
tfg/browser/visualtree.py:57
Method__init__
__init__(self, call_tree: CallFrameTree, x: int, y: int, width: int, height: int, ws_filler:str, with_combined_frames: bool)
tfg/browser/visualtree.py:73
Method__init__
(self, palette)
tfg/browser/palette.py:23
Method__init__
__init__(self, input_file: file)
tfg/stackcollapsers/stackcollapser.py:30
Method__init__
__init__(self, input_file: file)
tfg/stackcollapsers/dtracecollapser.py:21
Method__init__
__init__(self, input_file: file)
tfg/stackcollapsers/perfcollapser.py:19
Method__init__
__init__(self, name: str, frames: list[CallFrameNode], base_count: int, count: int)
tfg/calltree/calltree.py:14
Method__init__
(self)
tfg/calltree/calltree.py:51
Method__repr__
(self)
tfg/calltree/calltree.py:26
Method_display
(self, stdscr)
tfg/browser/terminal.py:276
Methodbfs_iterator
(vf)
tfg/browser/visualtree.py:121
Methoddarker
(self)
tfg/browser/palette.py:73
Methoddfs_iterator
(vf)
tfg/browser/visualtree.py:111
Methoddfs_traversal
Return depth-first search traversal iterator.
tfg/browser/visualtree.py:108
Methoddraw
(self)
tfg/browser/terminal.py:33
Methoddraw
(self)
tfg/browser/terminal.py:62
Methoddraw
(self)
tfg/browser/terminal.py:212
Methodhead
(self)
tfg/browser/visualtree.py:154
Methodhead
Head node.
tfg/calltree/calltree.py:62
Methodheight
(self)
tfg/browser/terminal.py:59
Methodlevel_iterator
(vf)
tfg/browser/visualtree.py:132
Methodlighter
(self)
tfg/browser/palette.py:65
Methodnormal
(self)
tfg/browser/palette.py:69
Methodparse
parse(self) -> list[(list[str], int)] Parse self._input_file. Assume that self._input_file contains already collapsed stack. Example
tfg/stackcollapsers/stackcollapser.py:35
Methodparse
parse(self) -> list[(list[str], int)]
tfg/stackcollapsers/dtracecollapser.py:26
Methodparse
parse(self) -> list[(list[str], int)]
tfg/stackcollapsers/pyspycollapser.py:4
Methodprocess_input
stdscr - window to read inputs from
tfg/browser/terminal.py:36
Methodprocess_input
(self, stdscr)
tfg/browser/terminal.py:98
Methodprocess_input
(self, stdscr)
tfg/browser/terminal.py:233
Methodstart_vf
(self)
tfg/browser/visualtree.py:158
Methodwidth
(self)
tfg/browser/terminal.py:55
Methodwith_combined_frames
(self)
tfg/browser/visualtree.py:146