Skip to content

feat: add NetworkMessageSent/Received metrics #1112

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Aug 31, 2021

Conversation

becksebenius-unity
Copy link
Contributor

This PR adds metrics that are tracked for each message that is sent and received by MLAPI. By tracking these metrics at a core level, we can provide users with a complete view of data that NGO is exchanging with the transport (minus batching overhead)

@becksebenius-unity
Copy link
Contributor Author

Note - tests are going to fail until I get the Tools side published to internal registry. Still looking for review.

becksebenius-unity and others added 10 commits August 30, 2021 14:04
# Conflicts:
#	com.unity.netcode.gameobjects/Runtime/Metrics/NetworkMetrics.cs
# Conflicts:
#	com.unity.netcode.gameobjects/Runtime/Messaging/MessageQueue/MessageQueueProcessor.cs
#	com.unity.netcode.gameobjects/Runtime/Metrics/INetworkMetrics.cs
#	com.unity.netcode.gameobjects/Runtime/Metrics/NetworkMetrics.cs
#	com.unity.netcode.gameobjects/Runtime/Metrics/NullNetworkMetrics.cs
#	testproject-tools-integration/Packages/manifest.json
…nologies/com.unity.multiplayer.mlapi into feature/track-message-metrics
@becksebenius-unity becksebenius-unity enabled auto-merge (squash) August 31, 2021 20:19
@becksebenius-unity becksebenius-unity merged commit ed110d0 into develop Aug 31, 2021
@becksebenius-unity becksebenius-unity deleted the feature/track-message-metrics branch August 31, 2021 20:50
SamuelBellomo added a commit that referenced this pull request Sep 2, 2021
…nsform

* develop: (26 commits)
  fix: client connected InvokeOnClientConnectedCallback with scene management disabled (#1123)
  fix: removed `public` class `NetcodeObserver` (MTT-1157) (#1122)
  feat: add NetworkMessageSent/Received metrics (#1112)
  feat: snapshot. MTU sizing option for Snapshot. MTT-1087 (#1111)
  Add metrics for transport bytes sent and received (#1104)
  fix: Missing end profiling sample (#1118)
  chore: support standalone mode for netcode runtimetests (#1115)
  feat: Change MetricNames for a more complex value type (#1109)
  feat: Track scene event metrics (#1089)
  style: whitespace fixes (#1117)
  feat: replace scene registration with scenes in build list (#1080)
  fix: mtt-857 GitHub issue 915 (#1099)
  fix: NetworkSceneManager exception when DontDestroyOnLoad NetworkObjects are being synchronized (#1090)
  feat: NetworkTransform Custom Editor Inspector UI (#1101)
  refactor: remove TempGlobalObjectIdHashOverride (#1105)
  fix: MTT-1124 Counters are now reported in sync with other metrics (#1096)
  refactor: convert using var statements to using var declarations (#1100)
  chore: updated all of the namespaces to match the tools package change (#1095)
  refactor!: remove network variable settings, network behaviour cleanup (#1097)
  fix: mtt-1088 review. Safer handling of out-of-order or old messages (#1091)
  ...

# Conflicts:
#	com.unity.netcode.gameobjects/Prototyping/NetworkTransform.cs
mollstam pushed a commit to Keepsake-Games/com.unity.netcode.gameobjects that referenced this pull request Feb 13, 2023
* Implemented NetworkMessageSent/NetworkMessageReceived metrics

* Added tests and fixed missing messages during batching

* updated the message type names to be a readonly

* fix against latest develop merge

* bumped tools version to Unity-Technologies#8

* fixed unnecessary using

* fixed errant tab (thanks github merge....)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants