
    uYf                        d dl mZ d dlZd dlZd dlmZ d dlmZ  ej                  d      Z
 edg d      Zej                  e   Zd Ze G d	 d
e             Ze G d de             Ze G d de             Ze G d de             Zy)    )
namedtupleN)span)compat_TDDFrame)	file_namelinenofunction_name
class_namec                 :     t        j                  d      |       S )NT)slots)attrs)klasss    W/var/www/highfloat_scraper/venv/lib/python3.12/site-packages/ddtrace/profiling/event.pyevent_classr      s     466e$$    c                   Z    e Zd ZdZ ej
                  ej                        Ze	d        Z
y)Eventz&An event happening at a point in time.)factoryc                 .    | j                   j                  S )zName of the event.)	__class____name__)selfs    r   namez
Event.name   s     ~~&&&r   N)r   
__module____qualname____doc__r   ibr   time_ns	timestamppropertyr    r   r   r   r      s+    0/I' 'r   r   c                   6    e Zd ZdZ ej
                  d      Zy)
TimedEventzAn event that has a duration.Ndefault)r   r   r   r   r   r   durationr#   r   r   r%   r%   $   s    'twwt$Hr   r%   c                   6    e Zd ZdZ ej
                  d      Zy)SampleEventz8An event representing a sample gathered from the system.Nr&   )r   r   r   r   r   r   sampling_periodr#   r   r   r*   r*   +   s    Bdggd+Or   r*   c                      e Zd Z ej                  dej                  e         Z ej                  dej                  e	         Z
 ej                  dej                  e         Z ej                  dej                  e         Z ej                  dej                  e	         Z ej                  de      Z ej                  de      Z ej                  dej                  e         Z ej                  dej                  e         Z ej                  dej                  e	         Z ej                  dej(                  e	         Zd Zy)StackBasedEventN)r'   typer   c                     |rs|j                   | _         |j                  U|j                  j                   | _        |j                  j                  | _        |r|j                  j
                  | _        y y y y )N)span_id_local_rootlocal_root_span_id	span_type
trace_type	_resourcetrace_resource_container)r   r   endpoint_collection_enableds      r   set_trace_infozStackBasedEvent.set_trace_info@   sk     <<DL+*.*:*:*B*B'"&"2"2"<"<.484D4D4N4ND1 / , r   )r   r   r   r   r   typingOptionalint	thread_idstrthread_namethread_native_idtask_id	task_nameStackTraceTypeframesnframesr2   r0   r4   Listr6   r8   r#   r   r   r-   r-   2   s"   6??3+?@I$''$V__S-ABKtwwt&//#2FGdggd)=>G6??3+?@ITWWT7Fdggac*G FOOC4HIdggd)=>GFOOC,@AJ&twwt&++c:JKOr   r-   )collectionsr   r9   r   ddtrace._tracer   ddspanddtrace.internalr   TypeVarr   r   rE   rB   r   objectr   r%   r*   r-   r#   r   r   <module>rL      s    "   ) # V^^D
Y V
WW%% 	'F 	' 	' % % % ,% , , Ok O Or   