// Token: 0x0600535F RID: 21343 RVA: 0x001CAEA8 File Offset: 0x001C92A8 public static void RecordSerialization(PhotonView view, object[] data) { if (!PhotonBandwidthGui.ShouldRecord) { return; } try { PhotonBandwidthGui instance = PhotonBandwidthGui._instance; List <object> list = new List <object>(); if (data != null) { list.AddRange(data); } int num = 0; foreach (object obj in list) { if (obj != null) { int num2 = Protocol.Serialize(obj).Length; object obj2 = instance.serializationStatistics; lock (obj2) { instance.serializationStatistics.Insert(0, new PhotonBandwidthGui.UsageData { bytes = num2, frame = instance.frame, name = obj.GetType().Name, type = PhotonBandwidthGui.UsageType.Value, addToTotal = false }); } num += num2; } } Player componentInSelfOrParent = view.gameObject.GetComponentInSelfOrParent <Player>(); object obj3 = instance.serializationStatistics; lock (obj3) { instance.serializationStatistics.Insert(0, new PhotonBandwidthGui.UsageData { bytes = num, frame = instance.frame, type = ((!(componentInSelfOrParent == null)) ? PhotonBandwidthGui.UsageType.Player : PhotonBandwidthGui.UsageType.Object), obj = view.gameObject, name = PhotonBandwidthGui.GetObjectPath(view.gameObject), addToTotal = false }); } object obj4 = instance.serializationStatistics; lock (obj4) { if (instance.serializationStatistics.Count > 1000) { instance.Flush(); } } } catch { } }