Beispiel #1
0
 public static void UpdateGuardProfile(ValueTypes type, mjr.CodeGen.Profiler profiler, int profileIndex)
 {
     if (profiler != null)
     {
         profiler.GetOrAddGuardNodeProfile(profileIndex).UpdateNodeProfile(type);
     }
 }
Beispiel #2
0
 public static PropertyDescriptor UpdateMapProfile(PropertyDescriptor pd, mjr.CodeGen.Profiler profiler, int profileIndex, PropertyMap map)
 {
     if (profiler != null)
     {
         profiler.GetOrAddMapNodeProfile(profileIndex).UpdateNodeProfile(map, pd);
     }
     return(pd);
 }
Beispiel #3
0
 public static void UpdateMapProfileForWrite(DObject obj, mjr.CodeGen.Profiler profiler, int profileIndex, int fieldId, PropertyMap oldMap)
 {
     if (profiler != null)
     {
         if (obj.Map == oldMap)
         {
             PropertyDescriptor pd = obj.GetPropertyDescriptorByFieldId(fieldId);
             //          obj.GetPropertyDescriptor
             //          Trace.WriteLine("YYY");
             profiler.GetOrAddMapNodeProfile(profileIndex).UpdateNodeProfile(oldMap, pd);
         }
     }
 }