Skip to content

Conversation

@coledot
Copy link

@coledot coledot commented Feb 21, 2021

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.

@CptMoore
Copy link

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?

@coledot
Copy link
Author

coledot commented Feb 22, 2021

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

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.

3 participants