File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/tests/tracing/eventpipe/randomizedallocationsampling Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,10 @@ public static int TestEntryPoint()
69
69
AllocationSampledData payload = new AllocationSampledData ( eventData , source . PointerSize ) ;
70
70
// uncomment to see the allocation events payload
71
71
//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 ) ) // NativeAOT doesn't report type names but we can use the size as a good proxy
74
+ // A real profiler would resolve the TypeID from PDBs but replicating that would
75
+ // make the test more complicated
73
76
{
74
77
Object128Count ++ ;
75
78
}
You can’t perform that action at this time.
0 commit comments