Private StaticloggerPrivateGet the configured logger instance. Returns a no-op logger if ServiceLoggers is not yet initialized.
Logger instance with trace, debug, info, warn, and error methods
Private StaticcalculatePrivateCalculate memory usage delta between two snapshots.
Starting memory snapshot
Ending memory snapshot
Memory delta with human-readable formatted values
Private StaticcategorizePrivateCategorize performance based on duration in milliseconds.
Duration in milliseconds
Performance category: 'fast', 'normal', 'slow', or 'very_slow'
StaticcreateCreate a performance timer that can be manually controlled. Useful for tracking operations that span multiple function calls.
Human-readable name for the operation
Optionalcontext: Record<string, unknown>Additional context information
PerformanceTimer instance
Private StaticformatPrivateFormat bytes into human-readable format with sign and unit.
Byte count to format
Formatted string with sign ('+' or '-'), value, and unit (B, KB, MB, GB)
Private StaticgetPrivateGet current memory usage snapshot.
Current process memory usage snapshot
StatictrackTrack operation performance with automatic logging and memory monitoring. Logs start, completion, and failure with detailed performance metrics.
Human-readable name for the operation
Async function to execute and monitor
Optionalcontext: Record<string, unknown>Additional context information
Promise that resolves with the operation result
StatictrackTrack synchronous operation performance. For operations that don't return promises but still need timing.
Human-readable name for the operation
Synchronous function to execute and monitor
Optionalcontext: Record<string, unknown>Additional context information
The operation result
Performance monitoring utilities for tracking operation timing and memory usage.