| Server IP : 121.121.20.254 / Your IP : 216.73.216.142 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 : /Python315/Lib/profiling/sampling/__pycache__/ |
Upload File : |
R
>lqj� c �L � Q s ] PHs] PHs]QHGs ] s]sQ s Q Q\2 sP! )z>Thin Python wrapper around C binary writer for profiling data.)� Collectorc � � [ U [ 2 % c U ! U O 2 o U Q6X c [ ! U Q6X c [ ! U Q6X c( [
O 2 % c [ ! [ ! [ QU 02 g)z�Resolve compression type from string or int.
Args:
compression: 'auto', 'zstd', 'none', or int (0/1)
Returns:
int: Compression type constant
�none�zstd�autozUnknown compression type: )�
isinstance�int�lower�COMPRESSION_NONE�COMPRESSION_ZSTD�_remote_debugging�zstd_available�
ValueError��compressions &�8C:\Python315\\Lib\profiling\sampling\binary_collector.py�_resolve_compressionr sw � � �+�s�#�#����#�#�%�K��f���� �� ��� �� ��+�+�-�-�#�#����5�k�]�C�D�D� c �t ` � \ sQ s](s n QsQP
QQ-Q ksQQ ksQ sQQ ks\ Q 2 s
Q
sQ sQ s
Q
sU sP! )�BinaryCollectora1 High-performance binary collector using C implementation.
This collector writes profiling data directly to a binary file format
with optional zstd compression. All I/O is performed in C for maximum
throughput.
The binary format uses string/frame deduplication and varint encoding
for efficient storage.
� skip_idler r c �� � Vm V m V0m [ U2 o[ [
O 2 Q* 2 o[ O VVeQ5 U m P! )a Create a new binary collector.
Args:
filename: Path to output binary file
sample_interval_usec: Sampling interval in microseconds
skip_idle: If True, skip idle threads (not used in binary format)
compression: 'auto', 'zstd', 'none', or int (0=none, 1=zstd)
�@B r )
�filename�sample_interval_usecr r r �time� monotonicr �BinaryWriter�_writer)�selfr r r r �compression_type�
start_time_uss &&&$$ r �__init__�BinaryCollector.__init__3 sL � � !�
�$8�!�"��/��<���D�N�N�,�y�8�9�
�(�5�5��M�
��r c � � Ue&