*/ public function getMetrics(?PerformanceCategory $category = null): array; /** * Get a specific metric by key */ public function getMetric(string $key): ?PerformanceMetric; /** * Get total request time in milliseconds */ public function getTotalRequestTime(): float; /** * Get total request memory usage in bytes */ public function getTotalRequestMemory(): int; /** * Get peak memory usage in bytes */ public function getPeakMemory(): int; /** * Reset all collected metrics */ public function reset(): void; /** * Check if performance tracking is enabled */ public function isEnabled(): bool; /** * Enable or disable performance tracking */ public function setEnabled(bool $enabled): void; }