Performance monitoring hook for animations
Requires
- module:react
Members
# static constant usePerformanceMonitor
Enhanced performance monitoring hook with advanced analytics
Type Definitions
Object
# PerformanceMetrics
Properties:
Name | Type | Description |
---|---|---|
fps |
number
|
Current frames per second |
avgFps |
number
|
Average FPS over time |
memoryUsage |
number
|
Memory usage in MB (if available) |
performanceLevel |
string
|
'excellent' | 'good' | 'fair' | 'poor' |
warnings |
Array.<string>
|
Performance warnings |
isOptimal |
boolean
|
Whether performance is optimal |