⚝
One Hat Cyber Team
⚝
Your IP:
216.73.217.4
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
python3
/
dist-packages
/
cloudinit
/
__pycache__
/
View File Name :
performance.cpython-310.pyc
o 'Dgg @ sR d dl Z d dlZd dlZeeZG dd dZddddededefd d Z dS ) Nc @ s> e Zd ZdZddddededefddZd d Zdd Zd S )Timeda A context manager which measures and optionally logs context run time. :param msg: A message that describes the thing that is being measured :param threshold: Threshold, in seconds. When the context exceeds this threshold, a log will be made. :param log_mode: Control whether to log. Defaults to "threshold". Possible values include: "always" - Always log 'msg', even when 'threshold' is not reached. "threshold" - Log when context time exceeds 'threshold'. "skip" - Do not log. Context time and message are stored in the 'output' and 'delta' attributes, respectively. Used to manually coalesce with other logs at the call site. usage: this call: ``` with Timed("Configuring the network"): run_configure() ``` might produce this log: ``` Configuring the network took 0.100 seconds ``` {Gz? thresholdr log_modemsgr c C s( || _ || _|| _d| _d| _d| _d S )N g )r r r outputstartdelta)selfr r r r 7/usr/lib/python3/dist-packages/cloudinit/performance.py__init__% s zTimed.__init__c C s t | _| S )N)time monotonicr )r r r r __enter__3 s zTimed.__enter__c C s t | j | _d| jdd}d| jkrtd| j| d S d| jkr&d