Ejemplo n.º 1
0
        public MethodResult getMethodsCurrentThread(int currentThreadId)
        {
            MethodResult currentMethodResult;
            ThreadResult currentThreadResult = this.threadsResults[currentThreadId];

            if (currentThreadResult.stack.Count > 0)
            {
                currentMethodResult         = currentThreadResult.stack.Peek();
                currentMethodResult.methods = new List <MethodResult>();
                currentMethodResult.methods.Add(new MethodResult());
                return(currentMethodResult.methods.First());
            }
            int currentThreadMethodsResultsLength;

            currentThreadResult.methodsResults.Add(new MethodResult());
            currentThreadMethodsResultsLength = currentThreadResult.methodsResults.Count;
            return(currentThreadResult.methodsResults[currentThreadMethodsResultsLength - 1]);
        }
Ejemplo n.º 2
0
 public void createNewThread(int keyThread)
 {
     threadsResults[keyThread] = new ThreadResult(keyThread);
     threads = new List <ThreadResult>();
 }