Пример #1
0
        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);
        }
Пример #2
0
 public void CallFunction(FunctionCall call)
 {
     FunctionCalls.Add(call);
 }