@@ -18,14 +18,22 @@ internal static class ProfilerCountersInfo
1818 ProfilerMarkerDataUnit . Count , ProfilerCounterOptions . FlushOnEndOfFrame | ProfilerCounterOptions . ResetToZeroOnFlush ) ;
1919
2020 // Messages
21- private static readonly ProfilerCounterValue < int > k_NamedMessagesCounterValue =
21+ private static readonly ProfilerCounterValue < int > k_NamedMessageReceivedCounterValue =
2222 new ProfilerCounterValue < int > ( ProfilerCategory . Network , ProfilerConstants . NamedMessageReceived ,
2323 ProfilerMarkerDataUnit . Count , ProfilerCounterOptions . FlushOnEndOfFrame | ProfilerCounterOptions . ResetToZeroOnFlush ) ;
2424
25- private static readonly ProfilerCounterValue < int > k_UnnamedMessagesCounterValue =
25+ private static readonly ProfilerCounterValue < int > k_UnnamedMessageReceivedCounterValue =
2626 new ProfilerCounterValue < int > ( ProfilerCategory . Network , ProfilerConstants . UnnamedMessageReceived ,
2727 ProfilerMarkerDataUnit . Count , ProfilerCounterOptions . FlushOnEndOfFrame | ProfilerCounterOptions . ResetToZeroOnFlush ) ;
2828
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+
2937 private static readonly ProfilerCounterValue < int > k_BytesSentCounterValue =
3038 new ProfilerCounterValue < int > ( ProfilerCategory . Network , ProfilerConstants . ByteSent ,
3139 ProfilerMarkerDataUnit . Count , ProfilerCounterOptions . FlushOnEndOfFrame | ProfilerCounterOptions . ResetToZeroOnFlush ) ;
@@ -83,8 +91,10 @@ private static void InitializeCounters()
8391 k_ConnectionsCounterValue . Value = 0 ;
8492 k_TickRateCounterValue . Value = 0 ;
8593
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 ;
8898 k_BytesSentCounterValue . Value = 0 ;
8999 k_BytesReceivedCounterValue . Value = 0 ;
90100 k_NetworkVarDeltasCounterValue . Value = 0 ;
@@ -106,8 +116,10 @@ private static void OnPerformanceTickData(PerformanceTickData tickData)
106116 UpdateIntCounter ( tickData , k_TickRateCounterValue , ProfilerConstants . ReceiveTickRate ) ;
107117
108118 // 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 ) ;
111123 UpdateIntCounter ( tickData , k_BytesSentCounterValue , ProfilerConstants . ByteSent ) ;
112124 UpdateIntCounter ( tickData , k_BytesReceivedCounterValue , ProfilerConstants . ByteReceived ) ;
113125 UpdateIntCounter ( tickData , k_NetworkVarDeltasCounterValue , ProfilerConstants . NetworkVarDeltas ) ;
0 commit comments