There’s a plugin for this, look into Packet Profiler by @PysephDEV! It works by estimating the bytes of each datatype that you send with :FireServer().
The basis for the estimation can be seen from this post, but some values are outdated so I recommend reading into this Github file.