@@ -34,8 +34,12 @@ internal static class ProfilerCountersInfo
34
34
new ProfilerCounterValue < int > ( ProfilerCategory . Network , ProfilerConstants . ByteReceived ,
35
35
ProfilerMarkerDataUnit . Count , ProfilerCounterOptions . FlushOnEndOfFrame | ProfilerCounterOptions . ResetToZeroOnFlush ) ;
36
36
37
- private static readonly ProfilerCounterValue < int > k_NetworkVarsCounterValue =
38
- new ProfilerCounterValue < int > ( ProfilerCategory . Network , ProfilerConstants . NetworkVarReceived ,
37
+ private static readonly ProfilerCounterValue < int > k_NetworkVarDeltasCounterValue =
38
+ new ProfilerCounterValue < int > ( ProfilerCategory . Network , ProfilerConstants . NetworkVarDeltas ,
39
+ ProfilerMarkerDataUnit . Count , ProfilerCounterOptions . FlushOnEndOfFrame | ProfilerCounterOptions . ResetToZeroOnFlush ) ;
40
+
41
+ private static readonly ProfilerCounterValue < int > k_NetworkVarUpdatesCounterValue =
42
+ new ProfilerCounterValue < int > ( ProfilerCategory . Network , ProfilerConstants . NetworkVarUpdates ,
39
43
ProfilerMarkerDataUnit . Count , ProfilerCounterOptions . FlushOnEndOfFrame | ProfilerCounterOptions . ResetToZeroOnFlush ) ;
40
44
41
45
// RPCs
@@ -83,7 +87,8 @@ private static void InitializeCounters()
83
87
k_UnnamedMessagesCounterValue . Value = 0 ;
84
88
k_BytesSentCounterValue . Value = 0 ;
85
89
k_BytesReceivedCounterValue . Value = 0 ;
86
- k_NetworkVarsCounterValue . Value = 0 ;
90
+ k_NetworkVarDeltasCounterValue . Value = 0 ;
91
+ k_NetworkVarUpdatesCounterValue . Value = 0 ;
87
92
88
93
k_RPCsSentCounterValue . Value = 0 ;
89
94
k_RPCsReceivedCounterValue . Value = 0 ;
@@ -105,7 +110,8 @@ private static void OnPerformanceTickData(PerformanceTickData tickData)
105
110
UpdateIntCounter ( tickData , k_UnnamedMessagesCounterValue , ProfilerConstants . UnnamedMessageReceived ) ;
106
111
UpdateIntCounter ( tickData , k_BytesSentCounterValue , ProfilerConstants . ByteSent ) ;
107
112
UpdateIntCounter ( tickData , k_BytesReceivedCounterValue , ProfilerConstants . ByteReceived ) ;
108
- UpdateIntCounter ( tickData , k_NetworkVarsCounterValue , ProfilerConstants . NetworkVarReceived ) ;
113
+ UpdateIntCounter ( tickData , k_NetworkVarDeltasCounterValue , ProfilerConstants . NetworkVarDeltas ) ;
114
+ UpdateIntCounter ( tickData , k_NetworkVarUpdatesCounterValue , ProfilerConstants . NetworkVarUpdates ) ;
109
115
110
116
// RPCs
111
117
UpdateIntCounter ( tickData , k_RPCsSentCounterValue , ProfilerConstants . RpcSent ) ;
0 commit comments