PerformanceProfiler class

Comprehensive performance profiling and monitoring system

Constructors

PerformanceProfiler()
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clear() → void
Clears all performance data
configure({int? maxRecentEvents, int? maxMetricsPerCategory}) → void
Configures profiler settings
generateReport(bool microseconds) PerformanceReport
Gets comprehensive performance report
getCategories() List<String>
Gets all available categories
getConfiguration() Map<String, dynamic>
Gets profiler configuration
getRecentEvents({int? limit, String? category}) List<PerformanceEvent>
Gets recent performance events
getStats(String category, bool microseconds) PerformanceStats
Gets performance statistics for a category
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
recordEvent(Duration duration, {String category = "default", Map<String, dynamic> metadata = const {}}) → void
Records a performance event directly without a session
setEnabled(bool enabled) → void
Enables or disables profiling
startSession({String category = 'default'}) ProfilerSession
Starts a new profiling session
time<T>(T function(), {String category = "timeSync"}) → T
Times a synchronous function execution
timeAsync<T>(Future<T> function(), {String category = 'timeAsync'}) Future<T>
Times an asynchronous function execution
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited