# Bandwidth Profiler

Networking bugs are some of the hardest to track down. When something feels laggy or your game starts stuttering with more players, you need to know exactly what data is being sent, how much of it, and which objects are responsible. Without visibility into your network traffic, you're debugging blind.

The Bandwidth profiler gives you that visibility. It allows you to do:

* Real-time Analysis: Visualize sent and received data with a live traffic graph.
* Detailed Breakdown: Inspect every RPC, see its parameters, and instantly highlight the source `GameObject` in the hierarchy.
* Save & Load Sessions: Debug builds by saving profiler data to a file and loading it back in the editor for analysis.

Accessing the profiler through `Tools/PurrNet/Analysis/Bandwidth Profiler`

<figure><img src="https://3317286851-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsgxJN58uttGJCEXbBIwp%2Fuploads%2Fgit-blob-511f4711c5918125768e6409b63dcb41e4c827fe%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3317286851-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsgxJN58uttGJCEXbBIwp%2Fuploads%2Fgit-blob-87b230a37b3192197ae204f644b16a94fee98762%2Fimage.png?alt=media" alt=""><figcaption><p>Bandwidth Profiler Window</p></figcaption></figure>

The profile also tries when possible to keep references to the sender/receiver so that you know exactly which components are sending the data.

<figure><img src="https://3317286851-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsgxJN58uttGJCEXbBIwp%2Fuploads%2Fgit-blob-f225ecdbabb21340775ce31135fb4a11dfe98cd5%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

It also allows you to save the data at runtime to a file to allow inspecting and analyzing it post play sessions.

<figure><img src="https://3317286851-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsgxJN58uttGJCEXbBIwp%2Fuploads%2Fgit-blob-e120843d15289123efb8a0aede90f5168f70771a%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3317286851-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsgxJN58uttGJCEXbBIwp%2Fuploads%2Fgit-blob-e055ce0d2b719a77b06b2c7b11ad4bbcb23280fa%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>
