Example #1
0
        public int GetObjectUID()
        {
            switch (MetricType)
            {
            case ObjectMetricType.Managed:
                return(m_CachedSnapshot.ManagedObjectIndexToUnifiedObjectIndex(ObjectIndex));

            case ObjectMetricType.Native:
                return(m_CachedSnapshot.NativeObjectIndexToUnifiedObjectIndex(ObjectIndex));

            default:
                return(-1);
            }
        }
Example #2
0
 int IMetricValue.GetObjectUID()
 {
     return(m_Snapshot.ManagedObjectIndexToUnifiedObjectIndex(m_Object.ManagedObjectIndex));
 }