Class ProfilingEntryInstr
java.lang.Object
org.ek9lang.compiler.ir.instructions.IRInstr
org.ek9lang.compiler.ir.instructions.ProfilingEntryInstr
- All Implemented Interfaces:
INode
Specialized IR instruction for profiling function entry (PROFILING_ENTRY).
Profiling entry probes are inserted at function entry when profiling is enabled. Each probe records the entry timestamp for duration calculation.
The instruction carries a function ID (reused from coverage infrastructure) and uses operands for human-readable IR output.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(INodeVisitor visitor) static ProfilingEntryInstrCreate a profiling entry instruction.longGet the function ID for this probe.Get the function name 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
-
entry
Create a profiling entry instruction.- Parameters:
functionId- Globally unique function ID (FNV-1a hash)functionName- Human-readable function namedebugInfo- Optional source location debug info
-
getFunctionId
public long getFunctionId()Get the function ID for this probe. -
getFunctionName
Get the function name for this probe. -
accept
-
toString
-