Skip to content

Commit 2e0b8fc

Browse files
author
JS Fauteux
committed
Remove transport counters
1 parent 9687207 commit 2e0b8fc

2 files changed

Lines changed: 1 addition & 15 deletions

File tree

com.unity.multiplayer.mlapi/Editor/ProfilerModuleOverride/NetworkProfilerOverride.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ private static List<MLAPIProfilerCounter> CreateOperationsCounters()
6060
var list = new List<MLAPIProfilerCounter>();
6161
list.Add(new MLAPIProfilerCounter() { m_Name = ProfilerConstants.NumberOfConnections.ToString(), m_Category = ProfilerCategory.Network.Name });
6262
list.Add(new MLAPIProfilerCounter() { m_Name = ProfilerConstants.ReceiveTickRate.ToString(), m_Category = ProfilerCategory.Network.Name });
63-
list.Add(new MLAPIProfilerCounter() { m_Name = ProfilerConstants.NumberOfTransportSends.ToString(), m_Category = ProfilerCategory.Network.Name });
64-
list.Add(new MLAPIProfilerCounter() { m_Name = ProfilerConstants.NumberOfTransportSendQueues.ToString(), m_Category = ProfilerCategory.Network.Name });
6563
return list;
6664
}
6765

@@ -138,8 +136,6 @@ static void OnPerformanceTickData(PerformanceTickData tickData)
138136
//Operations
139137
ProfilerInfo.ConnectionsCounterValue.Value += tickData.GetData(ProfilerConstants.NumberOfConnections.ToString());
140138
ProfilerInfo.TickRateCounterValue.Value += tickData.GetData(ProfilerConstants.ReceiveTickRate.ToString());
141-
ProfilerInfo.TransportSendsCounterValue.Value += tickData.GetData(ProfilerConstants.NumberOfTransportSends.ToString());
142-
ProfilerInfo.TransportSendQueuesCounterValue.Value += tickData.GetData(ProfilerConstants.NumberOfTransportSendQueues.ToString());
143139

144140
//Messages
145141
ProfilerInfo.NamedMessagesCounterValue.Value += tickData.GetData(ProfilerConstants.NumberOfNamedMessages.ToString());

com.unity.multiplayer.mlapi/Editor/ProfilerModuleOverride/ProfilerInfo.cs

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,12 @@ public static class ProfilerInfo
1515
// Operations
1616
public static MLAPIProfilerCounterValue<int> ConnectionsCounterValue =
1717
new MLAPIProfilerCounterValue<int>(ProfilerCategory.Network, ProfilerConstants.NumberOfConnections.ToString(),
18-
ProfilerMarkerDataUnit.Count, ProfilerCounterOptions.FlushOnEndOfFrame | Pro);
18+
ProfilerMarkerDataUnit.Count, ProfilerCounterOptions.FlushOnEndOfFrame);
1919

2020
public static MLAPIProfilerCounterValue<int> TickRateCounterValue =
2121
new MLAPIProfilerCounterValue<int>(ProfilerCategory.Network, ProfilerConstants.ReceiveTickRate.ToString(),
2222
ProfilerMarkerDataUnit.Count, ProfilerCounterOptions.FlushOnEndOfFrame);
2323

24-
public static MLAPIProfilerCounterValue<int> TransportSendsCounterValue =
25-
new MLAPIProfilerCounterValue<int>(ProfilerCategory.Network, ProfilerConstants.NumberOfTransportSends.ToString(),
26-
ProfilerMarkerDataUnit.Count, ProfilerCounterOptions.FlushOnEndOfFrame);
27-
28-
public static MLAPIProfilerCounterValue<int> TransportSendQueuesCounterValue =
29-
new MLAPIProfilerCounterValue<int>(ProfilerCategory.Network, ProfilerConstants.NumberOfTransportSendQueues.ToString(),
30-
ProfilerMarkerDataUnit.Count, ProfilerCounterOptions.FlushOnEndOfFrame);
31-
3224
//Messages
3325
public static MLAPIProfilerCounterValue<int> NamedMessagesCounterValue =
3426
new MLAPIProfilerCounterValue<int>(ProfilerCategory.Network, ProfilerConstants.NumberOfNamedMessages.ToString(),
@@ -112,8 +104,6 @@ public static void EmitClientToProfilerStream(string targetName, TickType eventT
112104

113105
ConnectionsCounterValue.Value = 1;
114106
TickRateCounterValue.Value = 1;
115-
TransportSendsCounterValue.Value = 1;
116-
TransportSendQueuesCounterValue.Value = 1;
117107

118108
NamedMessagesCounterValue.Value = 1;
119109
UnnamedMessagesCounterValue.Value = 1;

0 commit comments

Comments
 (0)