@@ -32,11 +32,6 @@ HRESULT CLR_PRF_Profiler::CreateInstance()
3232 g_CLR_PRF_Profiler.m_currentThreadPID = 0 ;
3333 NANOCLR_CHECK_HRESULT (CLR_RT_HeapBlock_MemoryStream::CreateInstance (g_CLR_PRF_Profiler.m_stream , nullptr , 0 ));
3434
35-
36- #if defined(VIRTUAL_DEVICE)
37- // need to do the here to send the memory layout in the first packet
38- g_CLR_PRF_Profiler.SendMemoryLayout ();
39- #endif
4035#if defined(VIRTUAL_DEVICE)
4136 // need to do the here to send the memory layout in the first packet
4237 g_CLR_PRF_Profiler.SendMemoryLayout ();
@@ -816,34 +811,6 @@ void CLR_PRF_Profiler::TrackObjectCreation(CLR_RT_HeapBlock *ptr)
816811 }
817812#endif
818813
819- #if defined(VIRTUAL_DEVICE)
820- if (g_ProfilerMessageCallback != NULL )
821- {
822- // build type name
823- char fullTypeName[1024 ] = {0 };
824- char *szBuffer = fullTypeName;
825- size_t iBuffer = MAXSTRLEN (fullTypeName);
826-
827- CLR_RT_TypeDef_Instance arrayTypeDef{};
828- CLR_UINT32 levels;
829- arrayTypeDef.InitializeFromReflection (array->ReflectionData (), &levels);
830-
831- g_CLR_RT_TypeSystem.BuildTypeName (arrayTypeDef, szBuffer, iBuffer);
832-
833- // compose output message
834- std::string objectCreation = std::format (
835- " New {}[] @ 0x{:X} {} bytes [{:08x}] {} elements {} level(s)\r\n " ,
836- fullTypeName,
837- (CLR_UINT64)((CLR_UINT8 *)ptr),
838- (dataSize * sizeof (struct CLR_RT_HeapBlock )),
839- elementIdx.data ,
840- array->m_numOfElements ,
841- levels);
842-
843- g_ProfilerMessageCallback (objectCreation.c_str ());
844- }
845- #endif
846-
847814#ifdef NANOCLR_TRACE_PROFILER_MESSAGES
848815
849816#ifdef _WIN64
0 commit comments