+
    –°³jO  ã                   ó|  € ^ RI t ^ RIt^ RIt^ RIt^ RIt^ RIHt ^ RIHt ^ RIH	t	 ^ RI
Ht ]P                  ! R4      t]P                  ! 4       t]P                   ! R4      t]P%                  ]4       ]P'                  ]4       ]P)                  ]P*                  4       R]n        R	 R
 ltR R lt ! R R4      tR# )é    N)Údatetime)Úgethostname©ÚAny)ÚStrobelightCLIFunctionProfilerÚ!strobelight_compile_time_profilerzB%(name)s, line %(lineno)d, %(asctime)s, %(levelname)s: %(message)sFc                ó0   € V ^8„  d   QhR\         R\         /# )é   ÚurlÚreturn©Ústr)Úformats   "Úi/home/luca/screen-checking/.venv/lib/python3.14/site-packages/torch/_strobelight/compile_time_profiler.pyÚ__annotate__r      s   € ÷ ñ ”3ð œ3ñ ó    c                 ó&  € T p \         P                  ! R V .R\         P                  R7      pVP                  ^ 8X  d   VP                  P                  R4      pV#   \         d+   p\        P                  R\        T4      4        Rp?T# Rp?ii ; i)ÚfburlT)Úcapture_outputÚstdinzutf-8z)URL shortening failed: %s, using long URLN)
Ú
subprocessÚrunÚDEVNULLÚ
returncodeÚstdoutÚdecodeÚ	ExceptionÚloggerÚwarningÚrepr)r   Ú	short_urlÚresultÚes   &   r   Ú	get_fburlr$      sˆ   € Ø€IðMÜ—’Ø�cˆN¨4´z×7IÑ7Iô
ˆð ×Ñ Ô!ØŸ™×,Ñ,¨WÓ5ˆIð Ðøô ô MÜ�‰ÐBÄDÈÃG×LÐLØÐûðMús   „AA ÁBÁ&BÂBc                ó0   € V ^8„  d   QhR\         R\         /# )r
   Ú
identifierr   r   )r   s   "r   r   r   *   s   € ÷ %ñ %¤Cð %¬Cñ %r   c                 ó2  € / R . bRRbR. .bR. .bRRR.bRR	bR
RRRRRRV  R2./..bR. bRRbR. bRRbRRbRRbRRbR. bRRbR. bR R!R"R#R$R%R&RR'R(R)R*R)/.R+. R,RR-R.R/RR0R1R2R3R4R5/
CpR6pR7pV\         P                  ! V4      ,           V,           p\        V4      # )8ÚaggregateListÚaggregation_fieldÚasync_stack_completeÚb_constraintsÚc_constraintsÚcolsÚnamespace_idÚnamespace_process_idÚcompareÚnoneÚconstraintsÚcolumnÚsample_tagsÚopÚallÚvaluez["z"]ÚderivedColsÚendÚnowÚenumColsÚ
filterModeÚDEFAULTÚhideEmptyColumnsÚfalseÚignoreGroupByInComparisonÚis_timeseriesÚ
mappedColsÚmetricÚcountÚ	modifiersÚorderÚweightÚ
order_descÚtrueÚparam_dimensionsÚdimÚpy_async_stackÚedgeÚparamÚ0ÚanchorÚpurposesÚreturn_remainderÚsamplingRatioÚ1Úshould_pivotÚstartz-30 daysÚtimezonezAmerica/Los_AngelesÚtopi'  z`https://www.internalfb.com/intern/scuba/query/?dataset=pyperf_experimental/on_demand&drillstate=z8&view=GraphProfilerView&&normalized=1726332703&pool=uber)ÚjsonÚdumpsr$   )r&   Ú
scuba_jsonÚscuba_url_prefixÚscuba_url_suffÚlong_urls   &    r   Úget_strobelight_urlr_   *   s„  € ð Ø˜ð àÐ3ð ð 	˜"˜ð ð 	˜"˜ð	 ð
 	�Ð!7Ð8ð ð 	�6ð ð 	Ø˜ t¨U°GÀÀ:À,ÈbÐ>QÐ=RÐSÐTð
ð ð 	�rð ð 	ˆuð ð 	�Bð ð 	�ið ð 	˜Gð ð 	$ Wð ð  	˜ð! ð" 	�bð# ð$ 	�'ð% ð& 	�Rð' ð( 	�Ø�fØØÐ$ d¨F°G¸SÀ(ÈCÐPð
ð 	�BØ˜GØ˜Ø˜Ø�ØÐ)Øˆuñ? €JðB zÐØO€NØ¤$§*¢*¨ZÓ"8Õ8¸>ÕI€HÜ�XÓÐr   c                   óì  a € ] tR t^Rt o ^ t^ t^ tRtRt]	P                  P                  R4      tRtRtRt]! ]	P                  P                  RR4      4      t]! ]	P                  P                  RR4      4      t]! ]! ]	P                  P                  RR4      4      4      t]V 3R	 lR
 l4       t]]3V 3R lR ll4       t]V 3R lR l4       t]V 3R lR l4       t]V 3R lR l4       tV 3R ltRtV tR# )ÚStrobelightCompileTimeProfilerFÚ COMPILE_STROBELIGHT_FRAME_FILTERNÚ$COMPILE_STROBELIGHT_MAX_STACK_LENGTHiô  Ú$COMPILE_STROBELIGHT_MAX_PROFILE_TIMEÚCOMPILE_STROBELIGHT_SAMPLE_RATEg    ÐcAc                ó    <€ V ^8„  d   QhRS[ /# ©r
   r   r   )r   Ú__classdict__s   "€r   r   Ú+StrobelightCompileTimeProfiler.__annotate__p   s   ø€ ÷ 8ñ 8™#ñ 8r   c                ó@   € ^ RI Hp \        VP                  4       4      # )r   )ÚCompileContext)Útorch._guardsrk   r   Úcurrent_trace_id)Úclsrk   s   & r   Ú	get_frameÚ(StrobelightCompileTimeProfiler.get_frameo   s   € å0ä�^×4Ñ4Ó6Ó7Ð7r   c                ó$   <€ V ^8„  d   QhRS[ RR/# )r
   Úprofiler_classr   Nr   )r   rh   s   "€r   r   ri   v   s   ø€ ÷ 
ñ 
¡Cð 
ÈTñ 
r   c                ó:  € V P                   '       d   \        P                  R 4       R# \        P                  R4       V\        J d3   ^ RIpVP                  R4      '       g   \        P                  R4       R# RV n         V P                  4        V! V P                  V P                  V P                  V P                  R\        P                  P                  R\        P                  P                  RR	4      4      ,           V P                  0R
7      V n        R# )z2compile time strobelight profiling already enabledNz*compile time strobelight profiling enabledÚstrobeclientzostrobeclient not found, can't enable compile time strobelight profiling, seemslike you are not on a FB machine.Tzpt2-profiler/ÚUSERÚUSERNAMEÚ )Úsample_eachÚmax_profile_duration_secÚstack_max_lenÚasync_stack_max_lenÚrun_user_namer4   )Úenabledr   Úinfor   ÚshutilÚwhichÚ	_cls_initrx   Úmax_profile_timeÚmax_stack_lengthÚosÚenvironÚgetr&   Úprofiler)rn   rr   r   s   && r   ÚenableÚ%StrobelightCompileTimeProfiler.enableu   sÍ   € à�;�;ˆ;Ü�K‰KÐLÔMÙä�‰Ð@ÔAàÔ;Ó;Ûà—<‘< ×/Ò/Ü—‘ð8ôñ àˆŒØ�‰Œñ
 &ØŸ™Ø%(×%9Ñ%9Ø×.Ñ.Ø #× 4Ñ 4Ø)Ü�j‰j�n‰n˜V¤R§Z¡Z§^¡^°JÀÓ%CÓDõEàŸ™Ð(ô
ˆŽr   c                ó   <€ V ^8„  d   QhRR/# ©r
   r   N© )r   rh   s   "€r   r   ri   ˜   s   ø€ ÷ 
ñ 
˜$ñ 
r   c                óD  € R P                  \        P                  ! 4       P                  R4      \        P
                  ! 4       \        4       R7      V n        \        P                  RV P                  4       \        P                  R\        V P                  4      4       R# )z{date}{pid}{hostname}z%Y-%m-%d-%H:%M:%S)ÚdateÚpidÚhostnamez%Unique sample tag for this run is: %sz?URL to access the strobelight profile at the end of the run: %sN)r   r   r:   Ústrftimer„   Úgetpidr   r&   r   r~   r_   ©rn   s   &r   r�   Ú(StrobelightCompileTimeProfiler._cls_init—   sl   € à0×7Ñ7Ü—’“×(Ñ(Ð)<Ó=Ü—	’	“Ü “]ð 8ó 
ˆŒô 	�‰Ð;¸S¿^¹^ÔLÜ�‰ØMÜ §¡Ó/ö	
r   c                ó   <€ V ^8„  d   QhRR/# r‹   rŒ   )r   rh   s   "€r   r   ri   ¦   s   ø€ ÷ 
ñ 
˜4ñ 
r   c                ó~   € \         P                  R V P                  V P                  V P                  ,           4       R# )zG%s strobelight success runs out of %s non-recursive compilation events.N)r   r~   Úsuccess_profile_countÚfailed_profile_countr“   s   &r   Ú
_log_statsÚ)StrobelightCompileTimeProfiler._log_stats¥   s.   € ä�‰ØUØ×%Ñ%Ø×%Ñ%¨×(@Ñ(@Õ@ö	
r   c          
      ó8   <€ V ^8„  d   QhRS[ RS[RS[ RS[ RS[ /# )r
   ÚfuncÚ
phase_nameÚargsÚkwargsr   )r   r   )r   rh   s   "€r   r   ri   ¯   s5   ø€ ÷ 1ñ 1Ùð1Ù$'ð1Ù03ð1Ù?Bð1á	ñ1r   c                ót  aaa€ R  VVV3R llpV P                   '       g   V! 4       # V P                  f   \        P                  R4       R# V P	                  4       pV P
                  '       dD   V ;P                  ^,          un        \        P                  RVVV P                  V4       V! 4       # V P                  eT   \        P                  ! V P                  V4      RJpV'       g)   \        P                  RVV P                  4       V! 4       # RV n        W n        \        P                  RV4       V P                  P                  ! S.SO5/ SB pV P                  P                  e   V ;P                  ^,          un        MV ;P                  ^,          un        V P!                  4        RV n        V# )	c                ó$   € V ^8„  d   QhR\         /# rg   r   )r   s   "r   r   ÚIStrobelightCompileTimeProfiler.profile_compile_time.<locals>.__annotate__²   s   € ÷ 	)ñ 	)”cñ 	)r   c                  ó   <€ S! S / SB # )NrŒ   )rž   rœ   rŸ   s   €€€r   ÚskipÚAStrobelightCompileTimeProfiler.profile_compile_time.<locals>.skip²   s   ø€ Ù˜Ð( Ñ(Ð(r   Nzprofiler is not setz~profile_compile_time is requested for phase: %s, frame %s, while already in running phase: %s,frame %s, recursive call ignoredz7profiling frame %s is skipped due to frame_id_filter %sTzprofiling frame %sF)r}   r‡   r   Úerrorro   Úinside_profile_compile_timeÚignored_profile_runsr~   Úcurrent_phaseÚframe_id_filterÚreÚmatchÚprofileÚprofile_resultr—   r˜   r™   )	rn   rœ   r�   rž   rŸ   r¤   Úframe_idÚ
should_runÚwork_results	   &f&jl    r   Úprofile_compile_timeÚ3StrobelightCompileTimeProfiler.profile_compile_time®   s`  ú€ ÷	)ò 	)ð �{�{ˆ{Ù“6ˆMà�<‰<ÒÜ�L‰LÐ.Ô/Ùà—=‘=“?ˆà×*×*Ð*Ø×$Ò$¨Õ)Õ$Ü�K‰Kð3àØØ×!Ñ!Øôñ “6ˆMà×ÑÒ*ÜŸš #×"5Ñ"5°xÓ@ÈÐLˆJßÜ—‘ØMØØ×'Ñ'ôñ
 “v�à*.ˆÔ'Ø&ÔÜ�‰Ð(¨(Ô3Ø—l‘l×*Ò*¨4ÐA°$ÒA¸&ÑAˆà�<‰<×&Ñ&Ò2Ø×%Ò%¨Õ*Ö%à×$Ò$¨Õ)Õ$à�‰ÔØ*/ˆÔ'ØÐr   c                óâ   <€ V ^8„  d   Qh/ S[ ;R&   S[ ;R&   S[ ;R&   S[;R&   S[;R&   S[R,          ;R&   S[R,          ;R&   S[R,          ;R	&   S[R,          ;R
&   S[ ;R&   S[ ;R&   S[ ;R&   # )r
   r—   r˜   r¨   r§   r}   Nrª   r&   r©   r‡   rƒ   r‚   rx   )ÚintÚboolr   r   )r   rh   s   "€r   r   ri   R   s³   ø‡ ‚ ÙÑ"ñ áÑ!ñ ñ Ñ!ñ ñ "&Ñ-ñ	 ñ
 Ññ ñ ˜4•ZÑTñ ñ �d•
Ñ!ñ ñ ˜•:Ñ$ñ ñ  �D�jÑñ! ñ$ ñ ñ% ñ* ñ ñ+ ñ2 ñ ò3 r   rŒ   i  )Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__r—   r˜   r¨   r§   r}   r„   r…   r†   rª   r&   r©   r‡   rµ   rƒ   r‚   Úfloatrx   Úclassmethodro   r   rˆ   r�   r™   r²   Ú__annotate_func__Ú__static_attributes__Ú__classdictcell__)rh   s   @r   ra   ra   R   s  ø‡ € Ø!"ÐØ !ÐØ !ÐØ(-ÐØ€Gð #%§*¡*§.¡.Ð1SÓ"T€Oð "€Jà $€Mà€HáØ
�
‰
�‰Ð=¸sÓCóÐñ  Ø
�
‰
�‰Ð=¸wÓGóÐñ Ùˆb�j‰j�n‰nÐ>ÀÓDÓEó€Kð ÷8ó ð8ð
 Ø*H÷ 
ñ 
ó ð
ðB ÷
ó ð
ð ÷
ó ð
ð ÷1ó ð1÷{ ƒ r   ra   )rY   Úloggingr„   r«   r   r   Úsocketr   Útypingr   Ú(torch._strobelight.cli_function_profilerr   Ú	getLoggerr   ÚStreamHandlerÚconsole_handlerÚ	FormatterÚ	formatterÚsetFormatterÚ
addHandlerÚsetLevelÚINFOÚ	propagater$   r_   ra   rŒ   r   r   Ú<module>rÎ      s£   ðó Û Û 	Û 	Û Ý Ý Ý å Sð 
×	Ò	Ð>Ó	?€à×'Ò'Ó)€Ø×ÒØHó€	ð × Ñ ˜YÔ 'à × Ñ �/Ô "Ø ‡��—‘Ô Ø€Ô õõ%÷PNó Nr   