| Server IP : 121.121.20.254 / Your IP : 216.73.216.202 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 : C:/Python315/Lib/profiling/sampling/live_collector/__pycache__/ |
Upload File : |
R
>lqj c �N � Q s ] PHs] QHGsGsGs \Q* s Q Q2 sP! )z�TrendTracker - Encapsulated trend tracking for live profiling metrics.
This module provides trend tracking functionality for profiling metrics,
calculating direction indicators (up/down/stable) and managing associated
visual attributes like colors.
)�Dict�Literal�Anyc �� ` � \ sQ s]s n QsQsQU 1Q kQ kks\U 1Q kQ k2 sU 1Q kQ ks U 1Q kQ
ks
U 1Q kQ ksU 1Q
kQ ksU 1Q kQ ks
U 1Q kQ ksU 1Q kQ ksU 1Q kQ ksQsU sP! )�TrendTrackera�
Tracks metric trends over time and provides visual indicators.
This class encapsulates all logic for:
- Tracking previous values of metrics
- Calculating trend directions (up/down/stable)
- Determining visual attributes (colors) for trends
- Managing enable/disable state
Example:
tracker = TrendTracker(colors_dict)
tracker.update("func1", "nsamples", 10)
trend = tracker.get_trend("func1", "nsamples")
color = tracker.get_color("func1", "nsamples")
g����MbP?c �>