dev.bullrich.asmdef-debug v1.1.0
Unity Assemblies Debugger
Small utility to show the time it takes to compile each assembly after a reload.
Usage
Just by installing this in your project it will load itself on every reload.
If you want to see the report, you can open the utility window at Window > Assemblies Debugger.
Logs
By default it will use the console to print the total reloading time.
You can see an example log here:
Compilation Report: 4.14 seconds
0.62s Unity.TextMeshPro.dll
0.44s Unity.Analytics.DataPrivacy.dll
0.44s Unity.PackageManagerUI.Editor.dll
0.43s Assembly.Debugger.dll
0.42s Unity.CollabProxy.Editor.dll
0.30s Unity.TextMeshPro.Editor.dll
0.24s Assembly-CSharp.dll
Assembly Reload Time: 1.2500003Disabling the logs
If you wish to disable the logs, you can set this in the checkbox in the utility window.
Disabling whole plugin
If, for some reason, you want to disable the plugin without removing it, you can add the Scripting Define Symbol
IGNORE_ASMDEF_DEBUG to your project and it will stop analyzing the reload times.
Installation
Adding the package to the Unity project manifest
- Navigate to the
Packagesdirectory of your project. Adjust the project manifest file
manifest.jsonin a text editor.- Ensure
https://package.openupm.comis part ofscopedRegistries.- Ensure
dev.bullrichis part ofscopes.
- Ensure
- Add
dev.bullrich.asmdef-debugtodependencies, stating the latest version.
A minimal example ends up looking like this. Please note that the version
X.Y.Zstated here is to be replaced with the latest released version which is currently.
{ "scopedRegistries": [ { "name": "package.openupm.com", "url": "https://package.openupm.com", "scopes": [ "dev.bullrich", "com.openupm" ] } ], "dependencies": { "dev.bullrich.asmdef-debug": "X.Y.Z", } }- Ensure
Switch back to the Unity software and wait for it to finish importing the added package.