BattletechPerformanceFix icon indicating copy to clipboard operation
BattletechPerformanceFix copied to clipboard

Simple metrics

Open coledot opened this issue 4 years ago • 2 comments

Restore the original SimpleMetrics.cs from feature/PerformanceTracking and expand on it with additional features.

I found these tools to be useful in determining where to find and squish memory leak bugs.

Note, HeapSnapshotCollector won't be found within the BPF code. It turns out there's a version of UnityHeapCrawler (found here: https://github.com/vasyab/UnityHeapCrawler/) baked into the BT release binaries, so that is what gets used.

coledot avatar Feb 21 '21 18:02 coledot

I really like the ideas of all your changes so far, is there a dll I and the RogueTech crew can just download for testing?

CptMoore avatar Feb 22 '21 12:02 CptMoore

https://drive.google.com/file/d/1UfRTno_pqGdCGdZKncNxNtLqACt1pzGr/view?usp=sharing

After renaming, you should be able to just drop-in replace it for the main .dll

To enable set "SimpleMetrics" = true, in your settings.json

Ctrl+Shift+M to dump message subscriptions to the log file Ctrl+Shift+D to dump memory info into a snapshot-[timestamp] directory in your BT directory. NOTE: memory dump can cause instability & crashes post-dump, haven't pinned down exact reason yet

coledot avatar Feb 22 '21 16:02 coledot