DiagnosticProcessingPolicy class final

Cooperative scheduling used by diagnostic import and export operations.

Annotations

Constructors

DiagnosticProcessingPolicy({int exportChunkSize = 50, int importChunkSize = 25, int yieldEveryExportChunks = 10, int yieldEveryImportChunks = 4, int backgroundProcessingThresholdBytes = 256 * 1024, int backgroundExportEntryThreshold = 50, Duration searchDebounce = const Duration(milliseconds: 300), Duration searchYieldInterval = const Duration(milliseconds: 80), Duration shortSearchYieldInterval = const Duration(milliseconds: 150), int searchProgressThreshold = 15, int shortSearchProgressThreshold = 20, int searchBatchSize = 200, int largeSearchBatchSize = 120, int veryLargeSearchBatchSize = 80, int shortSearchBatchSize = 300, int largeSearchNodeThreshold = 5000, int veryLargeSearchNodeThreshold = 10000, int viewerBuildYieldThreshold = 1000, Duration viewerBuildYieldDelay = const Duration(milliseconds: 5)})
const
DiagnosticProcessingPolicy.fromMap(Map<String, Object?> map)
Restores a validated scheduling policy from toMap output.
factory

Properties

backgroundExportEntryThreshold int
final
backgroundProcessingThresholdBytes int
final
exportChunkSize int
final
hashCode int
The hash code for this object.
no setteroverride
importChunkSize int
final
largeSearchBatchSize int
final
largeSearchNodeThreshold int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
searchBatchSize int
final
searchDebounce Duration
final
searchProgressThreshold int
final
searchYieldInterval Duration
final
shortSearchBatchSize int
final
shortSearchProgressThreshold int
final
shortSearchYieldInterval Duration
final
veryLargeSearchBatchSize int
final
veryLargeSearchNodeThreshold int
final
viewerBuildYieldDelay Duration
final
viewerBuildYieldThreshold int
final
yieldEveryExportChunks int
final
yieldEveryImportChunks int
final

Methods

copyWith({int? exportChunkSize, int? importChunkSize, int? yieldEveryExportChunks, int? yieldEveryImportChunks, int? backgroundProcessingThresholdBytes, int? backgroundExportEntryThreshold, Duration? searchDebounce, Duration? searchYieldInterval, Duration? shortSearchYieldInterval, int? searchProgressThreshold, int? shortSearchProgressThreshold, int? searchBatchSize, int? largeSearchBatchSize, int? veryLargeSearchBatchSize, int? shortSearchBatchSize, int? largeSearchNodeThreshold, int? veryLargeSearchNodeThreshold, int? viewerBuildYieldThreshold, Duration? viewerBuildYieldDelay}) DiagnosticProcessingPolicy
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, int>
Serializes every scheduling value, including exact duration precision.
toString() String
A string representation of this object.
inherited
validate() → void
Throws ArgumentError when scheduling would be unsafe or unbounded.

Operators

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

Constants

balanced → const DiagnosticProcessingPolicy
Scheduling that preserves the 7.0 import and export behavior.
maxAllowedBackgroundProcessingThresholdBytes → const int
maxAllowedChunkSize → const int
maxAllowedDelay → const Duration
maxAllowedSearchBatchSize → const int
maxAllowedSearchNodeThreshold → const int
maxAllowedSearchProgressThreshold → const int
maxAllowedYieldInterval → const int
responsive → const DiagnosticProcessingPolicy
Yields more frequently to favor UI responsiveness.
throughput → const DiagnosticProcessingPolicy
Processes larger batches when throughput matters more than latency.