public TimelineEntry(string name, int nodeId, DateTime startTimestamp, DateTime endTimestamp)
 {
     GUID           = Guid.NewGuid();
     Name           = name;
     Parent         = null;
     ChildEntries   = new List <TimelineEntry>();
     ThreadAffinity = new ThreadAffinity();
     NodeId         = nodeId;
     StartTimestamp = startTimestamp;
     EndTimestamp   = endTimestamp;
 }
Exemplo n.º 2
0
        public void InheritDataFrom(ThreadAffinity other)
        {
            Debug.Assert(!Calculated);
            Debug.Assert(other.Calculated);

            foreach (int invalidThreadId in other.m_invalidThreadIDs)
            {
                m_invalidThreadIDs.Add(invalidThreadId);
            }

            m_baseThreadId = other.ThreadId;

            ThreadId = GetInitialThreadId();
        }