SYMBOL INDEX (9108 symbols across 85 files) FILE: example/generate_examples.py function generate_by_script (line 5) | def generate_by_script(script): function generate_by_vt (line 10) | def generate_by_vt(script, options): FILE: example/src/async_simple.py function io_task (line 4) | async def io_task(): function main (line 8) | async def main(): FILE: example/src/different_sorts.py function merge_sort (line 10) | def merge_sort(collection): function quick_sort (line 45) | def quick_sort(collection): function heapify (line 79) | def heapify(unsorted, index, heap_size): function heap_sort (line 94) | def heap_sort(unsorted): FILE: example/src/function_args_return.py function fib (line 6) | def fib(n): FILE: example/src/gradient_descent.py function _error (line 25) | def _error(example_no, data_set="train"): function _hypothesis_value (line 36) | def _hypothesis_value(data_input_tuple): function output (line 52) | def output(example_no, data_set): function calculate_hypothesis_value (line 64) | def calculate_hypothesis_value(example_no, data_set): function summation_of_cost_derivative (line 77) | def summation_of_cost_derivative(index, end=m): function get_cost_derivative (line 95) | def get_cost_derivative(index): function run_gradient_descent (line 106) | def run_gradient_descent(): function test_gradient_descent (line 134) | def test_gradient_descent(): FILE: example/src/logging_integration.py function fib (line 7) | def fib(n): FILE: example/src/mcts_game.py class NaughtsAndCrossesState (line 10) | class NaughtsAndCrossesState: method __init__ (line 11) | def __init__(self): method getCurrentPlayer (line 15) | def getCurrentPlayer(self): method getPossibleActions (line 18) | def getPossibleActions(self): method takeAction (line 26) | def takeAction(self, action): method isTerminal (line 32) | def isTerminal(self): method getReward (line 47) | def getReward(self): class Action (line 63) | class Action: method __init__ (line 64) | def __init__(self, player, x, y): method __str__ (line 69) | def __str__(self): method __repr__ (line 72) | def __repr__(self): method __eq__ (line 75) | def __eq__(self, other): method __hash__ (line 83) | def __hash__(self): FILE: example/src/multi_process_pool.py function f (line 5) | def f(x): FILE: example/src/multithread.py function fib (line 8) | def fib(n): class MyThread (line 15) | class MyThread(threading.Thread): method run (line 16) | def run(self): FILE: src/viztracer/attach.py class AttachStatus (line 16) | class AttachStatus: function start_attach (line 25) | def start_attach(init_kwargs_b64: str) -> None: function stop_attach (line 43) | def stop_attach() -> None: function uninstall_attach (line 60) | def uninstall_attach(): FILE: src/viztracer/attach_process/add_code_to_python_process.py class TimeoutError (line 88) | class TimeoutError(RuntimeError): # @ReservedAssignment function _create_win_event (line 93) | def _create_win_event(name): function is_python_64bit (line 134) | def is_python_64bit(): function get_target_filename (line 138) | def get_target_filename(is_target_process_64=None, prefix=None, extensio... function run_python_code_windows (line 264) | def run_python_code_windows(pid, python_code, connect_debugger_tracing=F... function _acquire_mutex (line 317) | def _acquire_mutex(mutex_name, timeout): function _win_write_to_shared_named_memory (line 342) | def _win_write_to_shared_named_memory(python_code, pid): function run_python_code_linux (line 392) | def run_python_code_linux(pid, python_code, connect_debugger_tracing=Fal... function find_helper_script (line 450) | def find_helper_script(filedir, script_name): function run_python_code_mac (line 459) | def run_python_code_mac(pid, python_code, connect_debugger_tracing=False... function run_python_code (line 526) | def run_python_code(*args, **kwargs): function test (line 533) | def test(): function main (line 562) | def main(args): FILE: src/viztracer/attach_process/linux_and_mac/lldb_prepare.py function load_lib_and_attach (line 6) | def load_lib_and_attach(debugger, command, result, internal_dict): function __lldb_init_module (line 36) | def __lldb_init_module(debugger, internal_dict): FILE: src/viztracer/cellmagic.py function load_ipython_extension (line 5) | def load_ipython_extension(ipython) -> None: FILE: src/viztracer/code_monkey.py class AstTransformer (line 13) | class AstTransformer(ast.NodeTransformer): method __init__ (line 14) | def __init__(self, inst_type: str, inst_args: dict[str, dict]) -> None: method visit_Assign (line 21) | def visit_Assign(self, node: ast.Assign) -> ast.stmt | list[ast.stmt]: method visit_AugAssign (line 24) | def visit_AugAssign(self, node: ast.AugAssign) -> ast.stmt | list[ast.... method visit_AnnAssign (line 27) | def visit_AnnAssign(self, node: ast.AnnAssign) -> ast.stmt | list[ast.... method visit_FunctionDef (line 30) | def visit_FunctionDef(self, node: ast.FunctionDef) -> ast.FunctionDef: method visit_For (line 67) | def visit_For(self, node: ast.For) -> ast.For: method visit_Raise (line 78) | def visit_Raise(self, node: ast.Raise) -> ast.AST | list[ast.AST]: method _visit_generic_assign (line 84) | def _visit_generic_assign( method get_assign_targets (line 102) | def get_assign_targets(self, node: ast.expr) -> list[str]: method get_assign_targets_with_attr (line 123) | def get_assign_targets_with_attr(self, node: ast.AST) -> list[ast.Attr... method get_assign_log_nodes (line 145) | def get_assign_log_nodes(self, target: ast.expr) -> list[ast.stmt]: method get_instrument_node (line 180) | def get_instrument_node(self, trigger: str, name: str) -> ast.Expr: method get_instrument_node_by_node (line 206) | def get_instrument_node_by_node( method get_add_variable_node (line 222) | def get_add_variable_node( method get_add_func_exec_node (line 242) | def get_add_func_exec_node(self, name: str, val: ast.AST, lineno: int)... method copy_node_with_load (line 260) | def copy_node_with_load(self, node: ast.expr) -> ast.expr: method get_string_of_expr (line 271) | def get_string_of_expr(self, node: ast.expr | ast.slice) -> str: class SourceProcessor (line 323) | class SourceProcessor: method process (line 328) | def process(self, source: Any): method line_transform (line 347) | def line_transform(self, re_match: re.Match) -> str: method line_transform_condition (line 350) | def line_transform_condition(self, re_match: re.Match) -> str: method inline_transform (line 353) | def inline_transform(self, re_match: re.Match) -> str: method inline_transform_condition (line 360) | def inline_transform_condition(self, re_match: re.Match) -> str: class CodeMonkey (line 385) | class CodeMonkey: method __init__ (line 386) | def __init__(self, file_name: str) -> None: method add_instrument (line 392) | def add_instrument(self, inst_type: str, inst_args: dict[str, dict]) -... method add_source_processor (line 395) | def add_source_processor(self) -> None: method compile (line 398) | def compile( FILE: src/viztracer/decorator.py function ignore_function (line 16) | def ignore_function( function ignore_function (line 23) | def ignore_function( function ignore_function (line 29) | def ignore_function( function trace_and_save (line 54) | def trace_and_save( function trace_and_save (line 61) | def trace_and_save( function trace_and_save (line 67) | def trace_and_save( function _log_sparse_wrapper (line 99) | def _log_sparse_wrapper( function log_sparse (line 152) | def log_sparse( function log_sparse (line 159) | def log_sparse( function log_sparse (line 165) | def log_sparse( FILE: src/viztracer/event_base.py class _EventBase (line 10) | class _EventBase: method __init__ (line 11) | def __init__(self, tracer: VizTracer, name: str = "", **kwargs) -> None: method __setattr__ (line 27) | def __setattr__(self, name: str, value: Any) -> None: method _viztracer_get_attr_list (line 40) | def _viztracer_get_attr_list(self) -> list[str]: method _viztracer_set_config (line 51) | def _viztracer_set_config(self, key: str, value: Any) -> None: method config (line 56) | def config(self, key: str, value: Any) -> None: method _viztracer_log (line 59) | def _viztracer_log(self) -> None: method log (line 62) | def log(self) -> None: method triggerlog (line 66) | def triggerlog( FILE: src/viztracer/functree.py class FuncTreeNode (line 10) | class FuncTreeNode: method __init__ (line 13) | def __init__(self, event: dict[str, Any] | None = None) -> None: method is_ancestor (line 38) | def is_ancestor(self, other: "FuncTreeNode") -> bool: method is_same (line 41) | def is_same(self, other: "FuncTreeNode") -> bool: method adopt (line 48) | def adopt(self, other: "FuncTreeNode") -> None: class FuncTree (line 100) | class FuncTree: # pragma: no cover method __init__ (line 101) | def __init__(self, pid: int = 0, tid: int = 0) -> None: method is_same (line 107) | def is_same(self, other: "FuncTree") -> bool: method add_event (line 110) | def add_event(self, event: dict[str, Any]) -> None: method first_ts (line 116) | def first_ts(self) -> float: method first_node (line 119) | def first_node(self) -> FuncTreeNode: method node_by_timestamp (line 122) | def node_by_timestamp(self, ts: float) -> FuncTreeNode: method normalize (line 130) | def normalize(self, first_ts: float) -> None: method inorder_traverse (line 135) | def inorder_traverse(self) -> Generator[FuncTreeNode, None, None]: FILE: src/viztracer/main.py class VizUI (line 41) | class VizUI: method __init__ (line 42) | def __init__(self) -> None: method create_parser (line 53) | def create_parser(self) -> argparse.ArgumentParser: method load_config_file (line 386) | def load_config_file(self, filename: str = ".viztracerrc") -> argparse... method parse (line 439) | def parse(self, argv: list[str]) -> VizProcedureResult: method search_file (line 560) | def search_file(self, file_name: str) -> str | None: method run (line 580) | def run(self) -> VizProcedureResult: method run_report_server (line 607) | def run_report_server(self) -> VizProcedureResult: method run_code (line 619) | def run_code( method run_module (line 675) | def run_module(self) -> VizProcedureResult: method run_string (line 687) | def run_string(self) -> VizProcedureResult: method run_command (line 699) | def run_command(self) -> VizProcedureResult: method run_compress (line 756) | def run_compress(self): method run_decompress (line 779) | def run_decompress(self): method run_combine (line 800) | def run_combine(self, files: list[str], align: bool = False) -> VizPro... method _check_attach_availability (line 813) | def _check_attach_availability(self) -> tuple[bool, str | None]: method attach (line 828) | def attach(self) -> VizProcedureResult: method uninstall (line 881) | def uninstall(self) -> VizProcedureResult: method attach_installed (line 904) | def attach_installed(self) -> VizProcedureResult: method _wait_attach (line 926) | def _wait_attach(self, interval: float) -> None: method exit_routine (line 941) | def exit_routine(self) -> None: function main (line 962) | def main(): FILE: src/viztracer/modules/eventnode.c function clear_node (line 10) | void function PyObject (line 61) | PyObject* function fputs_escape (line 122) | static void function fprintfeename (line 134) | void FILE: src/viztracer/modules/eventnode.h type NodeType (line 9) | typedef enum _NodeType { type FEEData (line 18) | struct FEEData { type InstantData (line 34) | struct InstantData { type CounterData (line 40) | struct CounterData { type ObjectData (line 45) | struct ObjectData { type EventNode (line 52) | struct EventNode { type EventNode (line 68) | struct EventNode type EventNode (line 71) | struct EventNode type EventNode (line 72) | struct EventNode FILE: src/viztracer/modules/pythoncapi_compat.h function PyObject (line 58) | static inline PyObject* _Py_NewRef(PyObject *obj) function PyObject (line 69) | static inline PyObject* _Py_XNewRef(PyObject *obj) function _Py_SET_REFCNT (line 80) | static inline void _Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt) function _Py_SET_TYPE (line 127) | static inline void _Py_SET_TYPE(PyObject *ob, PyTypeObject *type) function _Py_SET_SIZE (line 137) | static inline void _Py_SET_SIZE(PyVarObject *ob, Py_ssize_t size) function PyCodeObject (line 147) | static inline PyCodeObject* PyFrame_GetCode(PyFrameObject *frame) function PyCodeObject (line 155) | static inline PyCodeObject* _PyFrame_GetCodeBorrow(PyFrameObject *frame) function PyFrameObject (line 165) | static inline PyFrameObject* PyFrame_GetBack(PyFrameObject *frame) function PyFrameObject (line 173) | static inline PyFrameObject* _PyFrame_GetBackBorrow(PyFrameObject *frame) function PyObject (line 184) | static inline PyObject* PyFrame_GetLocals(PyFrameObject *frame) function PyObject (line 200) | static inline PyObject* PyFrame_GetGlobals(PyFrameObject *frame) function PyObject (line 209) | static inline PyObject* PyFrame_GetBuiltins(PyFrameObject *frame) function PyFrame_GetLasti (line 218) | static inline int PyFrame_GetLasti(PyFrameObject *frame) function PyObject (line 237) | static inline PyObject* PyFrame_GetVar(PyFrameObject *frame, PyObject *n... function PyObject (line 270) | static inline PyObject* function PyInterpreterState (line 291) | static inline PyInterpreterState * function PyFrameObject (line 302) | static inline PyFrameObject* PyThreadState_GetFrame(PyThreadState *tstate) function PyFrameObject (line 310) | static inline PyFrameObject* function PyInterpreterState (line 322) | static inline PyInterpreterState* PyInterpreterState_Get(void) function PyThreadState_GetID (line 342) | static inline uint64_t PyThreadState_GetID(PyThreadState *tstate) function PyThreadState_EnterTracing (line 351) | static inline void PyThreadState_EnterTracing(PyThreadState *tstate) function PyThreadState_LeaveTracing (line 364) | static inline void PyThreadState_LeaveTracing(PyThreadState *tstate) function PyObject (line 381) | static inline PyObject* PyObject_CallNoArgs(PyObject *func) function PyObject (line 392) | static inline PyObject* PyObject_CallOneArg(PyObject *func, PyObject *arg) function PyModule_AddObjectRef (line 401) | static inline int function PyModule_AddType (line 426) | static inline int PyModule_AddType(PyObject *module, PyTypeObject *type) function PyObject_GC_IsTracked (line 450) | static inline int PyObject_GC_IsTracked(PyObject* obj) function PyObject_GC_IsFinalized (line 459) | static inline int PyObject_GC_IsFinalized(PyObject *obj) function _Py_IS_TYPE (line 469) | static inline int _Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { function PyFloat_Pack2 (line 481) | static inline int PyFloat_Pack2(double x, char *p, int le) function PyFloat_Unpack2 (line 484) | static inline double PyFloat_Unpack2(const char *p, int le) function PyFloat_Pack4 (line 495) | static inline int PyFloat_Pack4(double x, char *p, int le) function PyFloat_Pack8 (line 498) | static inline int PyFloat_Pack8(double x, char *p, int le) function PyFloat_Unpack4 (line 501) | static inline double PyFloat_Unpack4(const char *p, int le) function PyFloat_Unpack8 (line 504) | static inline double PyFloat_Unpack8(const char *p, int le) function PyObject (line 511) | static inline PyObject* PyCode_GetCode(PyCodeObject *code) function PyObject (line 520) | static inline PyObject* PyCode_GetVarnames(PyCodeObject *code) function PyObject (line 528) | static inline PyObject* PyCode_GetFreevars(PyCodeObject *code) function PyObject (line 536) | static inline PyObject* PyCode_GetCellvars(PyCodeObject *code) function PyObject (line 555) | static inline PyObject* PyImport_AddModuleRef(const char *name) function PyWeakref_GetRef (line 564) | static inline int PyWeakref_GetRef(PyObject *ref, PyObject **pobj) function Py_ssize_t (line 595) | static inline Py_ssize_t PyVectorcall_NARGS(size_t n) function PyObject (line 604) | static inline PyObject* function PyObject_GetOptionalAttr (line 680) | static inline int function PyObject_GetOptionalAttrString (line 702) | static inline int function PyMapping_GetOptionalItem (line 726) | static inline int function PyMapping_GetOptionalItemString (line 740) | static inline int function PyMapping_HasKeyWithError (line 763) | static inline int function PyMapping_HasKeyStringWithError (line 772) | static inline int function PyObject_HasAttrWithError (line 786) | static inline int function PyObject_HasAttrStringWithError (line 795) | static inline int function PyDict_GetItemRef (line 809) | static inline int function PyDict_GetItemStringRef (line 829) | static inline int function PyModule_Add (line 851) | static inline int function Py_IsFinalizing (line 866) | static inline int Py_IsFinalizing(void) function PyDict_ContainsString (line 880) | static inline int PyDict_ContainsString(PyObject *op, const char *key) function PyLong_AsInt (line 895) | static inline int PyLong_AsInt(PyObject *obj) function PyObject_VisitManagedDict (line 917) | static inline int function PyObject_ClearManagedDict (line 928) | static inline void function PyThreadState (line 942) | static inline PyThreadState* function PyUnicode_EqualToUTF8AndSize (line 952) | static inline int function PyUnicode_EqualToUTF8 (line 1015) | static inline int function PyList_Extend (line 1025) | static inline int function PyList_Clear (line 1031) | static inline int function PyDict_Pop (line 1040) | static inline int function PyDict_PopString (line 1082) | static inline int type Py_ssize_t (line 1102) | typedef Py_ssize_t Py_hash_t; function Py_hash_t (line 1108) | static inline Py_hash_t Py_HashPointer(const void *ptr) type _PyTime_t (line 1122) | typedef _PyTime_t PyTime_t; function PyTime_AsSecondsDouble (line 1126) | static inline double PyTime_AsSecondsDouble(PyTime_t t) function PyTime_Monotonic (line 1129) | static inline int PyTime_Monotonic(PyTime_t *result) function PyTime_Time (line 1132) | static inline int PyTime_Time(PyTime_t *result) function PyTime_PerfCounter (line 1135) | static inline int PyTime_PerfCounter(PyTime_t *result) function PyObject (line 1234) | static inline PyObject* Py_GetConstant(unsigned int constant_id) function PyObject (line 1287) | static inline PyObject* Py_GetConstantBorrowed(unsigned int constant_id) function PyObject (line 1298) | static inline PyObject * function PyDict_SetDefaultRef (line 1310) | static inline int type PyUnicodeWriter (line 1356) | typedef struct PyUnicodeWriter PyUnicodeWriter; function PyUnicodeWriter_Discard (line 1358) | static inline void PyUnicodeWriter_Discard(PyUnicodeWriter *writer) function PyUnicodeWriter (line 1364) | static inline PyUnicodeWriter* PyUnicodeWriter_Create(Py_ssize_t length) function PyObject (line 1389) | static inline PyObject* PyUnicodeWriter_Finish(PyUnicodeWriter *writer) function PyUnicodeWriter_WriteChar (line 1397) | static inline int function PyUnicodeWriter_WriteStr (line 1409) | static inline int function PyUnicodeWriter_WriteRepr (line 1422) | static inline int function PyUnicodeWriter_WriteUTF8 (line 1435) | static inline int function PyUnicodeWriter_WriteWideChar (line 1453) | static inline int function PyUnicodeWriter_WriteSubstring (line 1471) | static inline int function PyUnicodeWriter_Format (line 1492) | static inline int function PyLong_GetSign (line 1511) | static inline int PyLong_GetSign(PyObject *obj, int *sign) function PyLong_IsPositive (line 1525) | static inline int PyLong_IsPositive(PyObject *obj) function PyLong_IsNegative (line 1534) | static inline int PyLong_IsNegative(PyObject *obj) function PyLong_IsZero (line 1543) | static inline int PyLong_IsZero(PyObject *obj) function PyUnicode_Equal (line 1556) | static inline int PyUnicode_Equal(PyObject *str1, PyObject *str2) function PyObject (line 1586) | static inline PyObject* PyBytes_Join(PyObject *sep, PyObject *iterable) function Py_hash_t (line 1594) | static inline Py_hash_t Py_HashBuffer(const void *ptr, Py_ssize_t len) function PyIter_NextItem (line 1615) | static inline int PyIter_NextItem(PyObject *iter, PyObject **item) function PyObject (line 1646) | static inline PyObject* PyLong_FromInt32(int32_t value) function PyObject (line 1652) | static inline PyObject* PyLong_FromInt64(int64_t value) function PyObject (line 1658) | static inline PyObject* PyLong_FromUInt32(uint32_t value) function PyObject (line 1664) | static inline PyObject* PyLong_FromUInt64(uint64_t value) function PyLong_AsInt32 (line 1670) | static inline int PyLong_AsInt32(PyObject *obj, int32_t *pvalue) function PyLong_AsInt64 (line 1681) | static inline int PyLong_AsInt64(PyObject *obj, int64_t *pvalue) function PyLong_AsUInt32 (line 1692) | static inline int PyLong_AsUInt32(PyObject *obj, uint32_t *pvalue) function PyLong_AsUInt64 (line 1710) | static inline int PyLong_AsUInt64(PyObject *obj, uint64_t *pvalue) FILE: src/viztracer/modules/quicktime.c function compare_double (line 34) | static int function compare_int64 (line 40) | static int function calibrate_quicktime (line 46) | static void function system_ts_to_us (line 71) | double function system_ts_to_ns (line 82) | int64_t function dur_ts_to_us (line 93) | double function dur_ts_to_ns (line 104) | int64_t function quicktime_free (line 115) | void function quicktime_init (line 122) | void FILE: src/viztracer/modules/quicktime.h function get_base_time_ns (line 44) | inline int64_t function get_system_ts (line 50) | inline int64_t function get_system_ns (line 70) | inline int64_t function get_system_epoch_ns (line 87) | inline int64_t FILE: src/viztracer/modules/snaptrace.c function get_ts (line 45) | static inline int64_t type EventNode (line 68) | struct EventNode type EventNode (line 71) | struct EventNode function log_func_args (line 94) | static void function verbose_printf (line 151) | static void function clear_stack (line 163) | void type ThreadInfo (line 178) | struct ThreadInfo type ThreadInfo (line 180) | struct ThreadInfo type ThreadInfo (line 180) | struct ThreadInfo type FunctionNode (line 181) | struct FunctionNode type FunctionNode (line 181) | struct FunctionNode type MetadataNode (line 222) | struct MetadataNode type MetadataNode (line 238) | struct MetadataNode type MetadataNode (line 238) | struct MetadataNode type ThreadInfo (line 263) | struct ThreadInfo type ThreadInfo (line 267) | struct ThreadInfo function snaptrace_threaddestructor (line 279) | static void function prepare_before_trace (line 320) | int function tracer_pycall_callback (line 362) | int function tracer_ccall_callback (line 463) | int function tracer_pyreturn_callback (line 506) | int function tracer_creturn_callback (line 596) | int function tracer_tracefunc (line 681) | int function PyObject (line 717) | static PyObject* function PyObject (line 748) | PyObject* get_cfunc_from_callable(PyObject* callable, PyObject* self_arg) function PyObject (line 781) | PyObject* function PyObject (line 792) | PyObject* function PyObject (line 804) | PyObject* function PyObject (line 820) | PyObject* function enable_monitoring (line 862) | int function disable_monitoring (line 924) | int disable_monitoring(TracerObject* self) function tracer__flush_unfinished (line 990) | static void function PyObject (line 1066) | static PyObject* function PyObject (line 1097) | static PyObject* function PyObject (line 1137) | static PyObject* function PyObject (line 1167) | static PyObject* function PyObject (line 1193) | static PyObject* function PyObject (line 1473) | static PyObject* function PyObject (line 1698) | static PyObject* function PyObject (line 1715) | static PyObject* function PyObject (line 1736) | static PyObject* function PyObject (line 1745) | static PyObject* function PyObject (line 1751) | static PyObject* function PyObject (line 1770) | static PyObject* function PyObject (line 1829) | static PyObject* function PyObject (line 1860) | static PyObject* function PyObject (line 1894) | static PyObject* function PyObject (line 1936) | static PyObject* function PyObject (line 1962) | static PyObject* function PyObject (line 1987) | static PyObject* function PyObject (line 2005) | static PyObject* function PyObject (line 2016) | static PyObject* function PyObject (line 2057) | static PyObject* function Tracer_Init (line 2082) | static int function Tracer_dealloc (line 2113) | static void function snaptrace_free (line 2161) | void type PyModuleDef (line 2179) | struct PyModuleDef function PyMODINIT_FUNC (line 2190) | PyMODINIT_FUNC FILE: src/viztracer/modules/snaptrace.h type FunctionNode (line 70) | struct FunctionNode { type ThreadInfo (line 79) | struct ThreadInfo { type MetadataNode (line 90) | struct MetadataNode { type TracerObject (line 97) | typedef struct { FILE: src/viztracer/modules/snaptrace_member.c function Tracer_max_stack_depth_setter (line 15) | static int function PyObject (line 38) | static PyObject* function Tracer_include_files_setter (line 44) | static int function PyObject (line 68) | static PyObject* function Tracer_exclude_files_setter (line 78) | static int function PyObject (line 102) | static PyObject* function Tracer_ignore_c_function_setter (line 112) | static int function PyObject (line 133) | static PyObject* function Tracer_ignore_frozen_setter (line 143) | static int function PyObject (line 164) | static PyObject* function Tracer_verbose_setter (line 174) | static int function PyObject (line 191) | static PyObject* function Tracer_lib_file_path_setter (line 197) | static int function PyObject (line 230) | static PyObject* function Tracer_process_name_setter (line 236) | static int function PyObject (line 259) | static PyObject* function Tracer_min_duration_setter (line 268) | static int function PyObject (line 296) | static PyObject* function Tracer_log_func_args_setter (line 302) | static int function PyObject (line 323) | static PyObject* function Tracer_log_func_retval_setter (line 333) | static int function PyObject (line 354) | static PyObject* function Tracer_log_async_setter (line 364) | static int function PyObject (line 393) | static PyObject* function Tracer_trace_self_setter (line 403) | static int function PyObject (line 424) | static PyObject* function Tracer_log_func_repr_setter (line 434) | static int function PyObject (line 458) | static PyObject* FILE: src/viztracer/modules/util.c function Print_Py (line 11) | void function fprintjson (line 19) | void function fprint_escape (line 29) | void FILE: src/viztracer/modules/util.h function startswith (line 16) | inline int startswith(const char* target, const char* prefix) FILE: src/viztracer/modules/vcompressor/vc_dump.c function write_encoded_int (line 72) | static inline void function read_encoded_int (line 90) | static inline int function freadstrn (line 128) | int function dump_metadata (line 173) | int function PyObject (line 187) | PyObject* function PyObject (line 233) | PyObject* function PyObject (line 274) | PyObject* function PyObject (line 312) | PyObject* function json_dumps_and_compress_to_file (line 350) | int function PyObject (line 390) | PyObject* function dump_parsed_trace_events (line 457) | int function write_fee_events (line 531) | int function PyObject (line 595) | PyObject* function diff_and_write_counter_args (line 684) | int function PyObject (line 850) | PyObject* function PyObject (line 979) | PyObject* function dump_file_info (line 1115) | int function PyObject (line 1127) | PyObject* FILE: src/viztracer/modules/vcompressor/vcompressor.c function PyObject (line 11) | static PyObject* function vcompressor_dealloc (line 18) | static void function PyObject (line 24) | static PyObject* function PyObject (line 224) | static PyObject* vcompressor_compress(VcompressorObject* self, PyObject*... function PyObject (line 297) | static PyObject* type PyModuleDef (line 343) | struct PyModuleDef function PyMODINIT_FUNC (line 364) | PyMODINIT_FUNC FILE: src/viztracer/modules/vcompressor/vcompressor.h type VcompressorObject (line 8) | typedef struct { FILE: src/viztracer/patch.py function patch_subprocess (line 23) | def patch_subprocess(viz_args: list[str]) -> None: function patch_multiprocessing (line 156) | def patch_multiprocessing(tracer: VizTracer, viz_args: list[str]) -> None: class SpawnProcess (line 246) | class SpawnProcess: method __init__ (line 247) | def __init__( method run (line 264) | def run(self) -> None: function patch_spawned_process (line 273) | def patch_spawned_process(viztracer_kwargs: dict[str, Any], cmdline_args... class HookManager (line 303) | class HookManager: method __new__ (line 306) | def __new__(cls): method set_tracer (line 313) | def set_tracer(self, tracer: VizTracer | None) -> None: method install_hooks (line 317) | def install_hooks(self): method _after_fork (line 324) | def _after_fork(self): method _audit_callback (line 339) | def _audit_callback(self, event: str, args: Any) -> None: # pragma: n... function install_all_hooks (line 356) | def install_all_hooks(tracer: VizTracer) -> None: function uninstall_all_hooks (line 369) | def uninstall_all_hooks() -> None: FILE: src/viztracer/report_builder.py function get_json (line 21) | def get_json(data: dict[str, Any] | str | tuple[str, dict]) -> dict[str,... class ReportBuilder (line 65) | class ReportBuilder: method __init__ (line 66) | def __init__( method load_jsons (line 100) | def load_jsons(self) -> None: method combine_json (line 123) | def combine_json(self) -> None: method align_events (line 161) | def align_events( method prepare_json (line 182) | def prepare_json( method get_source_from_filename (line 232) | def get_source_from_filename(cls, filename: str) -> str | None: method generate_report (line 252) | def generate_report( method save (line 291) | def save( method print_messages (line 322) | def print_messages(self): FILE: src/viztracer/report_server.py class ReportServer (line 19) | class ReportServer: method __init__ (line 20) | def __init__( method start_process (line 61) | def start_process( method __del__ (line 88) | def __del__(self) -> None: method run (line 91) | def run(self) -> None: method clear (line 99) | def clear(self) -> None: method endpoint (line 111) | def endpoint(self) -> str: method collect (line 114) | def collect(self): method _recv_info (line 175) | def _recv_info(self, conn: socket.socket) -> None: method save (line 190) | def save(self) -> None: FILE: src/viztracer/snaptrace.pyi class Tracer (line 6) | class Tracer: method __init__ (line 12) | def __init__(self, tracer_entries: int, /) -> None: ... method start (line 13) | def start(self) -> None: ... method stop (line 14) | def stop(self, stop_option: str | None) -> None: ... method resume (line 15) | def resume(self) -> None: ... method pause (line 16) | def pause(self) -> None: ... method clear (line 17) | def clear(self) -> None: ... method load (line 18) | def load(self) -> dict[str, Any]: ... method dump (line 19) | def dump(self, filename: str, sanitize_function_name: bool = False) ->... method setignorestackcounter (line 20) | def setignorestackcounter(self, value: int) -> int: ... method reset_stack (line 21) | def reset_stack(self) -> None: ... method getts (line 22) | def getts(self) -> float: ... method get_base_time (line 23) | def get_base_time(self) -> int: ... method setpid (line 24) | def setpid(self, pid: int = -1, /) -> None: ... method add_func_args (line 25) | def add_func_args(self, key: str, value: Any) -> None: ... method get_func_args (line 26) | def get_func_args(self) -> dict[str, Any] | None: ... method add_raw (line 27) | def add_raw(self, raw: dict[str, Any]) -> None: ... method add_object (line 28) | def add_object( method add_counter (line 31) | def add_counter(self, name: str, args: dict[str, Any]) -> None: ... method add_instant (line 32) | def add_instant( method set_sync_marker (line 35) | def set_sync_marker(self) -> None: method get_sync_marker (line 39) | def get_sync_marker(self) -> float | None: FILE: src/viztracer/util.py function size_fmt (line 18) | def size_fmt(num: int | float, suffix: str = "B") -> str: class _bcolors (line 26) | class _bcolors: function color_print (line 55) | def color_print(color, s: str, **kwargs) -> None: function set_same_line_print_end (line 65) | def set_same_line_print_end(end: str) -> None: function same_line_print (line 70) | def same_line_print(s: str, width: int = 80, **kwargs) -> None: function unique_file_name (line 75) | def unique_file_name(exec_name: str) -> str: function unique_path (line 93) | def unique_path(directory: str, suffix=".json") -> str | None: function compare_version (line 102) | def compare_version(ver1: str, ver2: str) -> int: function time_str_to_us (line 119) | def time_str_to_us(t_s: str) -> float: function pid_exists (line 144) | def pid_exists(pid): function frame_stack_has_func (line 212) | def frame_stack_has_func(frame, funcs): FILE: src/viztracer/vcompressor.pyi class VCompressor (line 4) | class VCompressor: method compress (line 5) | def compress(self, raw_data: dict, filename: str) -> dict: ... method decompress (line 6) | def decompress(self, filename: str) -> dict: ... FILE: src/viztracer/viewer.py function chdir_temp (line 29) | def chdir_temp(d: str): class HttpHandler (line 39) | class HttpHandler(http.server.SimpleHTTPRequestHandler): method end_headers (line 40) | def end_headers(self): method log_message (line 45) | def log_message(self, format, *args): class ExternalProcessorHandler (line 50) | class ExternalProcessorHandler(HttpHandler): method __init__ (line 51) | def __init__(self, server_thread: "ServerThread", *args, **kwargs) -> ... method do_GET (line 55) | def do_GET(self): class PerfettoHandler (line 63) | class PerfettoHandler(HttpHandler): method __init__ (line 64) | def __init__(self, server_thread: "ServerThread", *args, **kwargs) -> ... method do_GET (line 68) | def do_GET(self): class HtmlHandler (line 100) | class HtmlHandler(HttpHandler): method __init__ (line 101) | def __init__(self, server_thread: "ServerThread", *args, **kwargs) -> ... method do_GET (line 105) | def do_GET(self): class DirectoryHandler (line 114) | class DirectoryHandler(HttpHandler): method __init__ (line 115) | def __init__(self, directory_viewer: "DirectoryViewer", *args, **kwarg... method do_GET (line 120) | def do_GET(self): method send_head (line 130) | def send_head(self): # pragma: no cover method list_directory (line 150) | def list_directory(self, path): # pragma: no cover class ExternalProcessorProcess (line 223) | class ExternalProcessorProcess: method __init__ (line 228) | def __init__(self, path: str) -> None: method _wait_start (line 242) | def _wait_start(self): method stop (line 250) | def stop(self): class VizViewerTCPServer (line 259) | class VizViewerTCPServer(socketserver.TCPServer): method handle_timeout (line 260) | def handle_timeout(self) -> None: class ServerThread (line 265) | class ServerThread(threading.Thread): method __init__ (line 266) | def __init__( method run (line 292) | def run(self) -> None: method view (line 302) | def view(self) -> int: method notify_active (line 354) | def notify_active(self) -> None: method is_port_in_use (line 357) | def is_port_in_use(self) -> bool: class DirectoryViewer (line 364) | class DirectoryViewer: method __init__ (line 365) | def __init__( method get_link (line 381) | def get_link(self, path: str) -> str: method create_server (line 389) | def create_server(self, path: str) -> ServerThread: method clean_servers (line 410) | def clean_servers(self, force: bool = False) -> None: method run (line 431) | def run(self) -> int: function viewer_main (line 454) | def viewer_main() -> int: FILE: src/viztracer/vizcounter.py class VizCounter (line 7) | class VizCounter(_EventBase): method _viztracer_log (line 8) | def _viztracer_log(self) -> None: FILE: src/viztracer/vizevent.py class VizEvent (line 11) | class VizEvent: method __init__ (line 12) | def __init__( method __enter__ (line 21) | def __enter__(self) -> None: method __exit__ (line 24) | def __exit__(self, type, value, trace) -> None: FILE: src/viztracer/vizlogging.py class VizLoggingHandler (line 9) | class VizLoggingHandler(Handler): method __init__ (line 10) | def __init__(self, *args, **kwargs) -> None: method emit (line 14) | def emit(self, record: LogRecord) -> None: method setTracer (line 19) | def setTracer(self, tracer: VizTracer) -> None: FILE: src/viztracer/vizobject.py class VizObject (line 8) | class VizObject(_EventBase): method __init__ (line 9) | def __init__(self, tracer: VizTracer, name: str, **kwargs) -> None: method __del__ (line 17) | def __del__(self) -> None: method _viztracer_log (line 23) | def _viztracer_log(self, ph: str = "O") -> None: FILE: src/viztracer/vizplugin.py class VizPluginError (line 16) | class VizPluginError(Exception): class VizPluginBase (line 25) | class VizPluginBase: method __init__ (line 26) | def __init__(self) -> None: method support_version (line 29) | def support_version(self) -> str: method message (line 39) | def message(self, m_type: str, payload: dict) -> dict: class VizPluginManager (line 57) | class VizPluginManager: method __init__ (line 58) | def __init__( method _get_plugin_from_string (line 82) | def _get_plugin_from_string(self, plugin: str) -> VizPluginBase: method _send_message (line 116) | def _send_message(self, plugin: VizPluginBase, m_type: str, payload: d... method has_plugin (line 129) | def has_plugin(self) -> bool: method event (line 132) | def event(self, when: str) -> None: method command (line 136) | def command(self, cmd: dict) -> None: method terminate (line 140) | def terminate(self) -> None: method assert_success (line 146) | def assert_success( method resolve (line 152) | def resolve(self, version: str, ret: dict) -> None: FILE: src/viztracer/viztracer.py class VizTracer (line 33) | class VizTracer(Tracer): method __init__ (line 34) | def __init__( method __del__ (line 158) | def __del__(self): method get_args (line 169) | def get_args(self) -> list[str]: method pid_suffix (line 198) | def pid_suffix(self) -> bool: method pid_suffix (line 202) | def pid_suffix(self, pid_suffix: bool) -> None: method init_kwargs (line 209) | def init_kwargs(self) -> dict: method __enter__ (line 235) | def __enter__(self) -> "VizTracer": method __exit__ (line 239) | def __exit__(self, type, value, trace) -> None: method connect_report_server (line 245) | def connect_report_server(self) -> None: method clean_report_server_process (line 259) | def clean_report_server_process(self) -> None: method register_global (line 269) | def register_global(self) -> None: method install (line 272) | def install(self) -> None: method log_instant (line 289) | def log_instant( method log_var (line 299) | def log_var(self, name: str, var: Any, cond: bool = True) -> None: method log_event (line 310) | def log_event(self, event_name: str) -> VizEvent: method shield_ignore (line 316) | def shield_ignore(self, func: Callable, *args, **kwargs): method set_afterfork (line 322) | def set_afterfork(self, callback: Callable, *args, **kwargs) -> None: method start (line 327) | def start(self) -> None: method stop (line 366) | def stop(self, stop_option: str | None = None) -> None: method parse (line 379) | def parse(self) -> int: method run (line 409) | def run(self, command: str, output_file: str | None = None) -> None: method save_report (line 415) | def save_report( method save (line 475) | def save( method fork_save (line 571) | def fork_save(self, output_file: str | None = None) -> multiprocessing... method terminate (line 588) | def terminate(self) -> None: method register_exit (line 591) | def register_exit(self) -> None: method exit_routine (line 609) | def exit_routine(self) -> None: method enable_thread_tracing (line 617) | def enable_thread_tracing(self) -> None: method add_variable (line 621) | def add_variable(self, name: str, var: Any, event: str = "instant") ->... method overload_print (line 633) | def overload_print(self) -> None: method restore_print (line 646) | def restore_print(self) -> None: method add_func_exec (line 649) | def add_func_exec(self, name: str, val: Any, lineno: int) -> None: method log_gc (line 661) | def log_gc(self) -> bool: method log_gc (line 665) | def log_gc(self, log_gc: bool) -> None: method add_garbage_collection (line 675) | def add_garbage_collection(self, phase: str, info: dict[str, Any]) -> ... function get_tracer (line 699) | def get_tracer() -> VizTracer | None: FILE: src/viztracer/web_dist/service_worker.js function shouldHandleHttpRequest (line 109) | function shouldHandleHttpRequest(req) { function handleHttpRequest (line 123) | async function handleHttpRequest(req) { function handleOpenTraceRequest (line 190) | async function handleOpenTraceRequest(req) { function installAppVersionIntoCache (line 221) | async function installAppVersionIntoCache(version) { function fetchWithTimeout (line 258) | function fetchWithTimeout(req, timeoutMs) { FILE: src/viztracer/web_dist/v52.0-6b9586def/assets/catapult_trace_viewer.js function detectEval (line 16) | function detectEval(){if(typeof chrome!=="undefined"&&chrome.app&&chrome... function assert (line 19) | function assert(b){if(!b)throw new Error("Assertion failed");} function mixin (line 20) | function mixin(to,from){var names=getOwnPropertyNames(from);for(var i=0;... function mixinStatics (line 22) | function mixinStatics(to,from){var names=getOwnPropertyNames(from);for(v... function oneOf (line 25) | function oneOf(object,propertyNames){for(var i=0;i>>0;} function Text (line 267) | function Text(node){CharacterData.call(this,node);} function getClass (line 269) | function getClass(el){return unsafeUnwrap(el).getAttribute("class");} function enqueueClassAttributeChange (line 270) | function enqueueClassAttributeChange(el,oldValue){enqueueMutation(el,"at... function invalidateClass (line 271) | function invalidateClass(el){scope.invalidateRendererBasedOnAttribute(el... function changeClass (line 272) | function changeClass(tokenList,method,args){var ownerElement=tokenList.o... function invalidateRendererBasedOnAttribute (line 275) | function invalidateRendererBasedOnAttribute(element,name){var p=element.... function enqueAttributeChange (line 276) | function enqueAttributeChange(element,name,oldValue){enqueueMutation(ele... function Element (line 277) | function Element(node){Node.call(this,node);} method shadowRoot (line 278) | get shadowRoot(){return unsafeUnwrap(this).polymerShadowRoot_||null;} method classList (line 278) | get classList(){var list=classListTable.get(this);if(!list){list=unsafeU... method className (line 279) | get className(){return unsafeUnwrap(this).className;} method className (line 279) | set className(v){this.setAttribute("class",v);} method id (line 279) | get id(){return unsafeUnwrap(this).id;} method id (line 279) | set id(v){this.setAttribute("id",v);} function escapeReplace (line 280) | function escapeReplace(c){switch(c){case"&":return"&";case"<":return... function escapeAttr (line 281) | function escapeAttr(s){return s.replace(escapeAttrRegExp,escapeReplace);} function escapeData (line 282) | function escapeData(s){return s.replace(escapeDataRegExp,escapeReplace);} function makeSet (line 283) | function makeSet(arr){var set={};for(var i=0;i