public void RecordFunctionCall(uint functionAddress, double clockTime) { AssertRecordingMode(); var functionDescriptor = new FunctionDescriptor(functionAddress); RegisterFunctionDescriptor(functionDescriptor); var newFunctionCall = new FunctionCall(functionDescriptor, clockTime); if (EntryCall == null) { EntryCall = newFunctionCall; } if (CallStack.Count > 0) { CallStack.Peek().CallFunction(newFunctionCall); } CallStack.Push(newFunctionCall); }
public void CallFunction(FunctionCall call) { FunctionCalls.Add(call); }