Class FuzzStatistics
java.lang.Object
org.ek9lang.compiler.fuzz.FuzzStatistics
Thread-safe statistics collector for the grammar-based fuzz generator.
All counters use AtomicLong and maps use ConcurrentHashMap for lock-free parallel access.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordRecords when a strand first discovers an error code. -
Constructor Summary
ConstructorsConstructorDescriptionCreate statistics with no strand filter (all strands active).FuzzStatistics(Set<Integer> activeStrands) Create statistics with an explicit set of active strands. -
Method Summary
Modifier and TypeMethodDescriptionGet the number of first discoveries per strand (all time).recentDiscoveryCounts(long windowSeconds) Get the number of first discoveries per strand within a rolling window.voidvoidvoidrecordCompilation(boolean success, long compileTimeNs, CompilationPhase deepestPhase) voidrecordCompilation(boolean success, long compileTimeNs, CompilationPhase deepestPhase, String strandId) voidvoidrecordConstruct(String constructName) voidrecordConstructCrash(String constructName) voidrecordControlFlow(String controlFlowType) voidrecordControlFlowCrash(String controlFlowType) voidRecord a convergence point for time-series error coverage analysis.voidvoidrecordErrorCode(String errorCode) voidrecordErrorCode(String errorCode, String strandId) Record an error code with strand attribution for discovery tracking.voidrecordFileCount(int fileCount) voidvoidrecordGeneration(long genTimeNs) voidvoidvoidvoidvoidvoidrecordParamCount(int paramCount) voidrecordParseResult(boolean parseable, long parseTimeNs) voidrecordPolicy(String policyName) voidvoidvoidrecordSourceSize(int bytes, int lines) voidvoidvoidrecordStrand4Result(boolean matched, boolean noError) voidvoidvoidvoidrecordTemplateCrash(String templateId) voidrecordTemplateUsage(String templateId) voidvoidvoidrecordWeightSnapshot(int s1, int s2, int s3, int s4, int s5) Record current strand dispatch weights for adaptive weight timeline.voidSample current JVM heap memory and update peak/last/max statistics.snapshot()Take a thread-safe snapshot of current statistics for reporting.
-
Constructor Details
-
FuzzStatistics
public FuzzStatistics()Create statistics with no strand filter (all strands active). -
FuzzStatistics
-
-
Method Details
-
recordGeneration
public void recordGeneration(long genTimeNs) -
recordSourceSize
public void recordSourceSize(int bytes, int lines) -
recordFileCount
public void recordFileCount(int fileCount) -
recordParseResult
public void recordParseResult(boolean parseable, long parseTimeNs) -
recordCompilation
-
recordCompilation
public void recordCompilation(boolean success, long compileTimeNs, CompilationPhase deepestPhase, String strandId) -
recordErrorCode
-
recordErrorCode
-
recordConstruct
-
recordControlFlow
-
recordConstructCrash
-
recordControlFlowCrash
-
recordParamCount
public void recordParamCount(int paramCount) -
recordCompilerCrash
public void recordCompilerCrash() -
recordKnownLimitation
public void recordKnownLimitation() -
recordFormatterCrash
public void recordFormatterCrash() -
recordCorrection
public void recordCorrection() -
recordTemplateUsage
-
recordTemplateCrash
-
recordStrand4Result
public void recordStrand4Result(boolean matched, boolean noError) -
recordStrand4Skip
public void recordStrand4Skip() -
recordPolicy
-
recordHierarchyInjection
public void recordHierarchyInjection() -
recordTraitImplementation
public void recordTraitImplementation() -
recordHarvestSuccess
public void recordHarvestSuccess() -
recordHarvestFailure
public void recordHarvestFailure() -
recordHierarchyRevert
public void recordHierarchyRevert() -
recordStrand4CompoundAttempt
public void recordStrand4CompoundAttempt() -
recordStrand4CompoundMatch
public void recordStrand4CompoundMatch() -
recordStrand4SurvivorReuse
public void recordStrand4SurvivorReuse() -
recordStrand5SurvivorFeed
public void recordStrand5SurvivorFeed() -
recordWeightAdjustment
public void recordWeightAdjustment() -
recordBlindSpotAttempt
public void recordBlindSpotAttempt() -
recordBlindSpotTriggered
public void recordBlindSpotTriggered() -
recordS2TemplateInvalidated
public void recordS2TemplateInvalidated() -
recordSeedRotation
public void recordSeedRotation() -
recordConvergencePoint
public void recordConvergencePoint()Record a convergence point for time-series error coverage analysis. -
recordWeightSnapshot
public void recordWeightSnapshot(int s1, int s2, int s3, int s4, int s5) Record current strand dispatch weights for adaptive weight timeline. -
sampleMemory
public void sampleMemory()Sample current JVM heap memory and update peak/last/max statistics. -
firstDiscoveryCounts
-
recentDiscoveryCounts
-
snapshot
Take a thread-safe snapshot of current statistics for reporting.
-