| Server IP : 121.121.20.254 / Your IP : 216.73.216.165 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Python312/Lib/__pycache__/ |
Upload File : |
�
���g�u � � � d Z ddgZddlZddlZddlZddlZddlZddlZddlZddl Z ddl
Z
ddlZddlZddl
mZ ddlZdZ G d� d� Zd � Zd
� Z G d� d� Zd� Zd
� Zdd�Zd� Z G d� d� Zd� Zedk( r e� yy)a� program/module to trace Python program or function execution
Sample use, command line:
trace.py -c -f counts --ignore-dir '$prefix' spam.py eggs
trace.py -t --ignore-dir '$prefix' spam.py eggs
trace.py --trackcalls spam.py eggs
Sample use, programmatically
import sys
# create a Trace object, telling it what to ignore, and whether to
# do tracing or line-counting or both.
tracer = trace.Trace(ignoredirs=[sys.base_prefix, sys.base_exec_prefix,],
trace=0, count=1)
# run the new command using the given tracer
tracer.run('main()')
# make a report, placing output in /tmp
r = tracer.results()
r.write_results(show_missing=True, coverdir="/tmp")
�Trace�CoverageResults� N)� monotonicz#pragma NO COVERc � � e Zd Zdd�Zd� Zy)�_IgnoreNc �� � |s
t � n
t |� | _ |sg n,|D �cg c]! }t j j |� ��# c}| _ ddi| _ y c c}w )Nz<string>� )�set�_mods�os�path�normpath�_dirs�_ignore)�self�modules�dirs�ds �C:\Python312\\Lib\trace.py�__init__z_Ignore.__init__F sW � �")�S�U�s�7�|��
�#�R�37�*9�37�a� +-�'�'�*:�*:�1�*=�37�*9��
�#�Q�(����*9s �&Ac � � || j v r| j | S || j v rd| j |<