UnityMemorySnapshotThing

Tool to work with unity memory snapshots

Stars
40

Bot releases are visible (Hide)

UnityMemorySnapshotThing - v0.4.0 Latest Release

Published by SamboyCoding 6 months ago

  • Adds support for snapshot version 16 (Unity 2022.x) and 17 (2023.1, untested)
  • Made the parser more fault-tolerant and less likely to crash on unexpected data or unreadable pointers
UnityMemorySnapshotThing - 0.3.0

Published by SamboyCoding about 1 year ago

  • Now targets .NET 7
  • Supports reading array data, greatly increasing the range of reachable types to be almost on-par with the editor
    • Notably this means dictionaries can now be searched, and so can delegates, which is very helpful for leaks caused by not unsubscribing from static Actions.
  • Unity objects in retention paths are now marked as such, and those that are themselves leaked managed shells are also distinguished, allowing you to more easily find the 'real' leak.
  • Now saves a summary report to a file called leaked_objects.txt in the working directory
    • Report includes counts of leaked objects
  • Increased maximum depth of recursion from 250 to 350, further increasing the range of objects that can be reached by the parser.
  • Performance improvements
UnityMemorySnapshotThing - 0.2.0

Published by SamboyCoding about 2 years ago

Now includes retention paths for leaked objects

UnityMemorySnapshotThing - 0.1.0

Published by SamboyCoding about 2 years ago

Initial release, pretty rough around the edges, but can at least tell you how many objects are leaked, what types they are, and their address (which you can then find in the in-editor memory analyzer).

Fully self-contained binary bundling .NET 6 runtime, built with .NET 7 RC1

Run with file.exe path/to/memory.snapshot

Related Projects