void UpdateObjectRow(RawFrameDataView data, ref ObjectTableRow row, string countMarkerName, string sizeMarkerName = null)
 {
     row.Count.text = data.GetCounterValueAsLong(data.GetMarkerId(countMarkerName)).ToString();
     if (!string.IsNullOrEmpty(sizeMarkerName))
     {
         row.Size.text = EditorUtility.FormatBytes(data.GetCounterValueAsLong(data.GetMarkerId(sizeMarkerName)));
     }
 }
Beispiel #2
0
        private long GetPhysicsCounterValue(RawFrameDataView frameData, string markerName)
        {
            // Find the marker.
            if (m_Markers.TryGetValue(markerName, out int markerId))
            {
                return(frameData.GetCounterValueAsLong(markerId));
            }

            // Indicate bad value!
            return(-1);
        }