Class PerformanceLogger
java.lang.Object
org.episteme.core.util.PerformanceLogger
Lightweight utility for tracking high-performance computing metrics.
This logger tracks cumulative time execution counts for specific keys (e.g. "OpenCL:Transfer", "OpenCL:Compute"). It is designed to be minimal overhead.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringReturns a formatted report of all collected metrics.static voidRecords a timing metric.static voidRecords a timing metric with context.static voidreset()resets all metrics.static voidsetEnabled(boolean e)
-
Constructor Details
-
PerformanceLogger
public PerformanceLogger()
-
-
Method Details
-
log
-
log
Records a timing metric.- Parameters:
key- unique identifier for the operationdurationNanos- duration in nanoseconds
-
reset
public static void reset()resets all metrics. -
setEnabled
public static void setEnabled(boolean e) -
getReport
Returns a formatted report of all collected metrics.
-