@@ -18,14 +18,22 @@ internal static class ProfilerCountersInfo
18
18
ProfilerMarkerDataUnit . Count , ProfilerCounterOptions . FlushOnEndOfFrame | ProfilerCounterOptions . ResetToZeroOnFlush ) ;
19
19
20
20
// Messages
21
- private static readonly ProfilerCounterValue < int > k_NamedMessagesCounterValue =
21
+ private static readonly ProfilerCounterValue < int > k_NamedMessageReceivedCounterValue =
22
22
new ProfilerCounterValue < int > ( ProfilerCategory . Network , ProfilerConstants . NamedMessageReceived ,
23
23
ProfilerMarkerDataUnit . Count , ProfilerCounterOptions . FlushOnEndOfFrame | ProfilerCounterOptions . ResetToZeroOnFlush ) ;
24
24
25
- private static readonly ProfilerCounterValue < int > k_UnnamedMessagesCounterValue =
25
+ private static readonly ProfilerCounterValue < int > k_UnnamedMessageReceivedCounterValue =
26
26
new ProfilerCounterValue < int > ( ProfilerCategory . Network , ProfilerConstants . UnnamedMessageReceived ,
27
27
ProfilerMarkerDataUnit . Count , ProfilerCounterOptions . FlushOnEndOfFrame | ProfilerCounterOptions . ResetToZeroOnFlush ) ;
28
28
29
+ private static readonly ProfilerCounterValue < int > k_NamedMessageSentCounterValue =
30
+ new ProfilerCounterValue < int > ( ProfilerCategory . Network , ProfilerConstants . NamedMessageSent ,
31
+ ProfilerMarkerDataUnit . Count , ProfilerCounterOptions . FlushOnEndOfFrame | ProfilerCounterOptions . ResetToZeroOnFlush ) ;
32
+
33
+ private static readonly ProfilerCounterValue < int > k_UnnamedMessageSentCounterValue =
34
+ new ProfilerCounterValue < int > ( ProfilerCategory . Network , ProfilerConstants . UnnamedMessageSent ,
35
+ ProfilerMarkerDataUnit . Count , ProfilerCounterOptions . FlushOnEndOfFrame | ProfilerCounterOptions . ResetToZeroOnFlush ) ;
36
+
29
37
private static readonly ProfilerCounterValue < int > k_BytesSentCounterValue =
30
38
new ProfilerCounterValue < int > ( ProfilerCategory . Network , ProfilerConstants . ByteSent ,
31
39
ProfilerMarkerDataUnit . Count , ProfilerCounterOptions . FlushOnEndOfFrame | ProfilerCounterOptions . ResetToZeroOnFlush ) ;
@@ -83,8 +91,10 @@ private static void InitializeCounters()
83
91
k_ConnectionsCounterValue . Value = 0 ;
84
92
k_TickRateCounterValue . Value = 0 ;
85
93
86
- k_NamedMessagesCounterValue . Value = 0 ;
87
- k_UnnamedMessagesCounterValue . Value = 0 ;
94
+ k_NamedMessageReceivedCounterValue . Value = 0 ;
95
+ k_UnnamedMessageReceivedCounterValue . Value = 0 ;
96
+ k_NamedMessageSentCounterValue . Value = 0 ;
97
+ k_UnnamedMessageSentCounterValue . Value = 0 ;
88
98
k_BytesSentCounterValue . Value = 0 ;
89
99
k_BytesReceivedCounterValue . Value = 0 ;
90
100
k_NetworkVarDeltasCounterValue . Value = 0 ;
@@ -106,8 +116,10 @@ private static void OnPerformanceTickData(PerformanceTickData tickData)
106
116
UpdateIntCounter ( tickData , k_TickRateCounterValue , ProfilerConstants . ReceiveTickRate ) ;
107
117
108
118
// Messages
109
- UpdateIntCounter ( tickData , k_NamedMessagesCounterValue , ProfilerConstants . NamedMessageReceived ) ;
110
- UpdateIntCounter ( tickData , k_UnnamedMessagesCounterValue , ProfilerConstants . UnnamedMessageReceived ) ;
119
+ UpdateIntCounter ( tickData , k_NamedMessageReceivedCounterValue , ProfilerConstants . NamedMessageReceived ) ;
120
+ UpdateIntCounter ( tickData , k_UnnamedMessageReceivedCounterValue , ProfilerConstants . UnnamedMessageReceived ) ;
121
+ UpdateIntCounter ( tickData , k_NamedMessageSentCounterValue , ProfilerConstants . NamedMessageSent ) ;
122
+ UpdateIntCounter ( tickData , k_UnnamedMessageSentCounterValue , ProfilerConstants . UnnamedMessageSent ) ;
111
123
UpdateIntCounter ( tickData , k_BytesSentCounterValue , ProfilerConstants . ByteSent ) ;
112
124
UpdateIntCounter ( tickData , k_BytesReceivedCounterValue , ProfilerConstants . ByteReceived ) ;
113
125
UpdateIntCounter ( tickData , k_NetworkVarDeltasCounterValue , ProfilerConstants . NetworkVarDeltas ) ;
0 commit comments