Class PerformanceEvent.PerformanceEventBuilder
java.lang.Object
io.github.jspinak.brobot.logging.events.PerformanceEvent.PerformanceEventBuilder
- Enclosing class:
PerformanceEvent
-
Method Summary
Modifier and TypeMethodDescriptionDetailed timing breakdown of sub-operationsbuild()
correlationId
(String correlationId) Correlation ID for tracking related operationsCPU time used (if available)currentState
(String currentState) Current state when operation was performedTotal duration of the operationerrorMessage
(String errorMessage) Error message if operation failedmemoryAfter
(long memoryAfter) Memory usage after operation completedmemoryBefore
(long memoryBefore) Memory usage before operation startedmemoryUsed
(long memoryUsed) Memory used by the operation in bytesAdditional performance metadataName/description of the operationoperationCount
(long operationCount) Number of method calls or iterationspeakMemoryUsed
(long peakMemoryUsed) Peak memory usage during operationsuccess
(boolean success) Whether this operation was considered successfulthreadName
(String threadName) Thread name where operation was executedTimestamp when the operation was initiatedtoString()
-
Method Details
-
timestamp
Timestamp when the operation was initiated- Returns:
this
.
-
operation
Name/description of the operation- Returns:
this
.
-
duration
Total duration of the operation- Returns:
this
.
-
memoryUsed
Memory used by the operation in bytes- Returns:
this
.
-
breakdown
Detailed timing breakdown of sub-operations- Returns:
this
.
-
metadata
Additional performance metadata- Returns:
this
.
-
correlationId
Correlation ID for tracking related operations- Returns:
this
.
-
currentState
Current state when operation was performed- Returns:
this
.
-
threadName
Thread name where operation was executed- Returns:
this
.
-
cpuTime
CPU time used (if available)- Returns:
this
.
-
operationCount
Number of method calls or iterations- Returns:
this
.
-
success
Whether this operation was considered successful- Returns:
this
.
-
errorMessage
Error message if operation failed- Returns:
this
.
-
peakMemoryUsed
Peak memory usage during operation- Returns:
this
.
-
memoryBefore
Memory usage before operation started- Returns:
this
.
-
memoryAfter
Memory usage after operation completed- Returns:
this
.
-
build
-
toString
-