Beispiel #1
0
        private void ExtractProcess(CIProcess aProcess)
        {
            // Extract process info from thread full name.
            DExcExtractorList threadInfo = iData[DExcExtractorListType.EListThread];

            foreach (string line in threadInfo)
            {
                Match m = EM.ThreadName.Match(line);
                if (m.Success)
                {
                    CIFullNameUtils parser = new CIFullNameUtils(m.Groups[1].Value);
                    parser.GetProcessInfo(aProcess);

                    return;
                }
            }
        }
Beispiel #2
0
        private void ExtractThread(CIThread aThread)
        {
            // Extract process info from thread full name.
            DExcExtractorList threadInfo = iData[DExcExtractorListType.EListThread];

            foreach (string line in threadInfo)
            {
                Match m = EM.ThreadName.Match(line);
                if (m.Success)
                {
                    CIFullNameUtils parser = new CIFullNameUtils(m.Groups[1].Value);
                    parser.GetThreadInfo(aThread);
                }
                else
                {
                    m = EM.ThreadId.Match(line);
                    if (m.Success)
                    {
                        aThread.Id = int.Parse(m.Groups[1].Value);
                    }
                }
            }
        }