GenerationMetrics class
Performance metrics for asset generation operations.
Tracks timing, counts, and other performance-related data to help with optimization and reporting.
Constructors
- GenerationMetrics({required int filesGenerated, required int classesCreated, required int assetsProcessed, required Duration duration, int directoriesScanned = 0, int filesSkipped = 0})
-
Creates a new GenerationMetrics instance.
const
- GenerationMetrics.empty()
-
Creates an empty metrics instance.
factory
-
GenerationMetrics.fromMap(Map<
String, dynamic> map) -
Creates metrics from a map.
factory
Properties
- assetsProcessed → int
-
Number of individual assets processed.
final
- classesCreated → int
-
Number of Dart classes created.
final
- directoriesScanned → int
-
Number of directories scanned.
final
- duration → Duration
-
Total duration of the generation operation.
final
- filesGenerated → int
-
Number of files generated.
final
- filesSkipped → int
-
Number of files skipped during processing.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> - Converts metrics to a map for serialization or reporting.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override