2 instantiations of PgoSchemaElem
ILCompiler.ReadyToRun (2)
Compiler\ProfileDataManager.cs (2)
228new PgoSchemaElem 237new PgoSchemaElem
53 references to PgoSchemaElem
ILCompiler.ReadyToRun (53)
Compiler\DependencyAnalysis\ReadyToRun\InstrumentationDataTableNode.cs (3)
194PgoSchemaElem[] schema = _profileDataManager[md].SchemaData; 219PgoSchemaElem[] schema = _profileDataManager[method].SchemaData; 256PgoSchemaElem[] schema = _profileDataManager[method].SchemaData;
Compiler\ProfileData.cs (5)
37public MethodProfileData(MethodDesc method, MethodProfilingDataFlags flags, double exclusiveWeight, Dictionary<MethodDesc, int> callWeights, uint scenarioMask, PgoSchemaElem[] schemaData) 54public readonly PgoSchemaElem[] SchemaData; 67PgoSchemaElem[][] schemaElemMergerArray = new PgoSchemaElem[2][]; 95PgoSchemaElem[] mergedSchemaData;
Compiler\ProfileDataManager.cs (2)
176private PgoSchemaElem[] SynthesizeSchema(Compilation comp, MethodDesc method) 187List<PgoSchemaElem> elems = new();
IBC\MIbcProfileParser.cs (1)
373PgoSchemaElem[] pgoSchemaData = null;
parent\parent\Common\JitInterface\CorInfoImpl.cs (10)
214public static IEnumerable<PgoSchemaElem> ConvertTypeHandleHistogramsToCompactTypeHistogramFormat(PgoSchemaElem[] pgoData, CompilationModuleGroup compilationModuleGroup) 217foreach (var elem in pgoData) 229foreach (var elem in pgoData) 252PgoSchemaElem? newElem = ComputeLikelyClassMethod(i, handleToObject, nativeSchema, instrumentationData, compilationModuleGroup); 277private static PgoSchemaElem? ComputeLikelyClassMethod(int index, Dictionary<IntPtr, object> handleToObject, PgoInstrumentationSchema[] nativeSchema, byte[] instrumentationData, CompilationModuleGroup compilationModuleGroup) 328PgoSchemaElem likelyClassElem = default(PgoSchemaElem); 4943public static void ComputeJitPgoInstrumentationSchema(Func<object, IntPtr> objectToHandle, PgoSchemaElem[] pgoResultsSchemas, out PgoInstrumentationSchema[] nativeSchemas, MemoryStream instrumentationData, Func<TypeDesc, bool> typeFilter = null) 5019PgoSchemaElem[] pgoResultsSchemas = _compilation.ProfileData.GetAllowSynthesis(_compilation, methodDesc, out bool isSynthesized)?.SchemaData;
parent\parent\Common\Pgo\PgoFormat.cs (32)
234public static IEnumerable<PgoSchemaElem> ParsePgoData<TType, TMethod>(IPgoSchemaDataLoader<TType, TMethod> dataProvider, IEnumerable<long> inputDataStream, bool longsAreCompressed) 237PgoSchemaElem curSchema = default(PgoSchemaElem); 390public static void EncodePgoData<TType, TMethod>(IEnumerable<PgoSchemaElem> schemas, IPgoEncodedValueEmitter<TType, TMethod> valueEmitter, bool emitAllElementsUnconditionally) 392PgoSchemaElem prevSchema = default(PgoSchemaElem); 397foreach (PgoSchemaElem schema in schemas) 508private sealed class PgoSchemaMergeComparer : IComparer<PgoSchemaElem>, IEqualityComparer<PgoSchemaElem> 512public int Compare(PgoSchemaElem x, PgoSchemaElem y) 535public bool Equals(PgoSchemaElem x, PgoSchemaElem y) 537int IEqualityComparer<PgoSchemaElem>.GetHashCode(PgoSchemaElem obj) => obj.ILOffset ^ ((int)(obj.InstrumentationKind & PgoInstrumentationKind.DescriptorMask) << 20); 540public static PgoSchemaElem[] Merge<TType, TMethod>(ReadOnlySpan<PgoSchemaElem[]> schemasToMerge) 545Dictionary<PgoSchemaElem, PgoSchemaElem> dataMerger = new Dictionary<PgoSchemaElem, PgoSchemaElem>(PgoSchemaMergeComparer.Singleton); 547foreach (PgoSchemaElem[] schemaSet in schemasToMerge) 551foreach (PgoSchemaElem schema in schemaSet) 560PgoSchemaElem oneRunSchema = default(PgoSchemaElem); 569PgoSchemaElem[] result = new PgoSchemaElem[dataMerger.Count]; 575static void MergeInSchemaElem(Dictionary<PgoSchemaElem, PgoSchemaElem> dataMerger, PgoSchemaElem schema) 577if (dataMerger.TryGetValue(schema, out var existingSchemaItem)) 580PgoSchemaElem mergedElem = existingSchemaItem;