Class QueueDiagnosticCallStackFlushStrategy
java.lang.Object
io.higson.runtime.profiler.callstack.QueueDiagnosticCallStackFlushStrategy
- All Implemented Interfaces:
DiagnosticCallStackFlushStrategy
public class QueueDiagnosticCallStackFlushStrategy
extends Object
implements DiagnosticCallStackFlushStrategy
Production
DiagnosticCallStackFlushStrategy: builds a DiagnosticCallStackReport, enqueues it
on the DiagnosticQueue, then clears the thread-local DiagnosticCallStack.
Used by DiagnosticHigsonEngine and
DiagnosticAttributeInterceptor at runtime when
profilerEnabled = true and no custom strategy is provided.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidflush(String elementName, DiagnosticCallStackEvent.ElementType elementType, DiagnosticCallStackSummary summary, String instanceId) Called once the top-level profiling frame has finished.
-
Constructor Details
-
QueueDiagnosticCallStackFlushStrategy
public QueueDiagnosticCallStackFlushStrategy()
-
-
Method Details
-
flush
public void flush(String elementName, DiagnosticCallStackEvent.ElementType elementType, DiagnosticCallStackSummary summary, String instanceId) Description copied from interface:DiagnosticCallStackFlushStrategyCalled once the top-level profiling frame has finished.- Specified by:
flushin interfaceDiagnosticCallStackFlushStrategy- Parameters:
elementName- name of the top-level element (parameter / function / flow / attribute path)elementType- type of the top-level elementsummary- aggregated call-stack summary generated from the current thread-local stackinstanceId- identifier of the runtime engine instance that produced the report
-