public void Sample(T value) { #if ENABLE_PROFILER unsafe { var data = new ProfilerMarkerData { Type = m_Type, Size = (uint)UnsafeUtility.SizeOf <T>(), Ptr = UnsafeUtility.AddressOf(ref value) }; ProfilerUnsafeUtility.SingleSampleWithMetadata(m_Ptr, 1, &data); } #endif }