{"repo":"kangtegong/pyftrace","free":true,"listed":false,"github":"https://github.com/kangtegong/pyftrace","clone":"git clone https://github.com/kangtegong/pyftrace.git","description":"Python function tracer","language":"Python","stars":203,"topics":["function","low-overhead","python","python3","tracer","tracing"],"license":"MIT","category":"analytics","readme_excerpt":"한국어 pyftrace Introduction pyftrace is a lightweight Python function tracing tool designed to monitor and report on function calls within Python scripts. It leverages sys.setprofile(Python 3.8 3.11), sys.monitoring(Python 3.12 ) to monitor Python events and trace functions based on the results. With pyftrace, you can trace function calls across multiple modules, visualize call hierarchies, and generate execution time reports. Key features of pyftrace include: - Function Call/Return Tracing : Monitor calls/returns to functions in your Python script and imported modules. - Built-in Function Tracing : Optionally trace built-in functions like print using the --verbose flag. - Multiple Module Support : Trace functions across multiple files within your project. - Execution Reports : Generate reports detailing function execution times and call counts with the --report flag. - Path Tracing : Trace the path of traced Python file using the --path flag. - TUI Mode : Run pyftrace in a Text User Interface (TUI) mode using the tui command. - Function Filtering : Filter the function you want to track with the --function and --exclude-function flag. Usage Requirements - Python Version : pyftrace requires Python 3.8+ . Installation or note: on Windows, windows-curses is required. Command-Line Options - --report or -r : Generate a report of function execution times and call counts at the end of the script's execution. - --verbose or -v : Enable tracing of built-in functions (e.g., print, len). ","default_branch":null,"files":null,"tree":[],"storefront":"/r/kangtegong","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/kangtegong/pyftrace/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}