File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/tests/tracing/eventpipe/randomizedallocationsampling Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,11 @@ public static int TestEntryPoint()
6969 AllocationSampledData payload = new AllocationSampledData ( eventData , source . PointerSize ) ;
7070 // uncomment to see the allocation events payload
7171 //Logger.logger.Log($"{payload.AllocationKind} | ({payload.ObjectSize}) {payload.TypeName} = 0x{payload.Address}");
72- if ( payload . TypeName == "Tracing.Tests.Object128" )
72+ if ( payload . TypeName == "Tracing.Tests.Object128" ||
73+ ( payload . TypeName == "NULL" && payload . ObjectSize == 128 + 16 ) ||
74+ ( payload . TypeName == "NULL" && payload . ObjectSize == 128 + 8 ) ) // NativeAOT doesn't report type names but we can use the size as a good proxy
75+ // A real profiler would resolve the TypeID from PDBs but replicating that would
76+ // make the test more complicated
7377 {
7478 Object128Count ++ ;
7579 }
You can’t perform that action at this time.
0 commit comments