@@ -34,8 +34,12 @@ internal static class ProfilerCountersInfo
3434 new ProfilerCounterValue < int > ( ProfilerCategory . Network , ProfilerConstants . ByteReceived ,
3535 ProfilerMarkerDataUnit . Count , ProfilerCounterOptions . FlushOnEndOfFrame | ProfilerCounterOptions . ResetToZeroOnFlush ) ;
3636
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 ,
3943 ProfilerMarkerDataUnit . Count , ProfilerCounterOptions . FlushOnEndOfFrame | ProfilerCounterOptions . ResetToZeroOnFlush ) ;
4044
4145 // RPCs
@@ -83,7 +87,8 @@ private static void InitializeCounters()
8387 k_UnnamedMessagesCounterValue . Value = 0 ;
8488 k_BytesSentCounterValue . Value = 0 ;
8589 k_BytesReceivedCounterValue . Value = 0 ;
86- k_NetworkVarsCounterValue . Value = 0 ;
90+ k_NetworkVarDeltasCounterValue . Value = 0 ;
91+ k_NetworkVarUpdatesCounterValue . Value = 0 ;
8792
8893 k_RPCsSentCounterValue . Value = 0 ;
8994 k_RPCsReceivedCounterValue . Value = 0 ;
@@ -105,7 +110,8 @@ private static void OnPerformanceTickData(PerformanceTickData tickData)
105110 UpdateIntCounter ( tickData , k_UnnamedMessagesCounterValue , ProfilerConstants . UnnamedMessageReceived ) ;
106111 UpdateIntCounter ( tickData , k_BytesSentCounterValue , ProfilerConstants . ByteSent ) ;
107112 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 ) ;
109115
110116 // RPCs
111117 UpdateIntCounter ( tickData , k_RPCsSentCounterValue , ProfilerConstants . RpcSent ) ;
0 commit comments