Class ProfilingExitInstr
java.lang.Object
org.ek9lang.compiler.ir.instructions.IRInstr
org.ek9lang.compiler.ir.instructions.ProfilingExitInstr
- All Implemented Interfaces:
INode
Specialized IR instruction for profiling function exit (PROFILING_EXIT).
Profiling exit probes are inserted before function return when profiling is enabled. Each probe computes elapsed time and accumulates timing data.
The JVM backend wraps the method body in try/finally to ensure this fires even when exceptions occur.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(INodeVisitor visitor) static ProfilingExitInstrCreate a profiling exit instruction.longGet the function ID for this probe.toString()Methods inherited from class IRInstr
addOperand, addOperands, equals, getDebugInfo, getEscapeMetaData, getOpcode, getOperands, getResult, hasEscapeMetaData, hashCode, hasResult, isControlFlow, isLabel, isMemoryManagement, isMethodCall, setEscapeMetaData
-
Method Details
-
exit
Create a profiling exit instruction.- Parameters:
functionId- Globally unique function ID (FNV-1a hash)debugInfo- Optional source location debug info
-
getFunctionId
public long getFunctionId()Get the function ID for this probe. -
accept
-
toString
-