Skip to content

A simple profiler viewer for Unity that can display massive CPU frames in an efficient way (unlike Unity's built-in profiler)

License

MPL-2.0, Unknown licenses found

Licenses found

MPL-2.0
LICENSE
Unknown
LICENSE.meta
Notifications You must be signed in to change notification settings

AquaGeneral/Snappy-Profiler-Viewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snappy Profiler Viewer

A simple profiler viewer for Unity that can display CPU frames. It handles with ease the kind of load that Unity's profiler struggles to display at more than 1fps.

This tool does not have any profiling ability of its own, instead its simply hooking into Unity's builtin profiler and displaying the data.

Scope

This is not intended to replace the Unity Profiler, since the amount of work that would go into essentially rewriting the profiler GUI isn't worth it. There is also the possibility that Unity Technologies fix the performance issues and this tool will no longer be necessary.

This tool was made simply so I can actually view a "large" frame without performance issues. Note that frame data is gathered and cached, and this inherently is slow. Unity's profiler is seemingly regathering the data every GUI frame. It would be nice to hide the hitch making a seperate thread display a progress bar or something, but as far as I know the GUI and the information gathering must run on the main thread.

Motivation

For multiple years I have needed to profile "large" frames of data. Unity's profiler can take upwards of 30 seconds to respond to input in these circumstances. Not only that, but it never gets any better, it seems that the Unity profiler continously retrieves the frame data from C++ to Mono, which can take a second or so depending on how much data there is. The Unity profiler seems to also be issuing commands to draw UI elements which aren't visible, which might account for the extra time it takes.

There is a decently sized forum post about it: "Why is Unity's profiler so slow and unresponsive in a frame that has a lot of data?".

Known Issues

  • Some code might not be that clean/simple/efficient.

Future Plans

  • Support for the "Raw Hierarchy" view.
  • Up/down arrow keys should scroll to out of view elements.
  • Home/End key shortcuts.

License

Mozilla Public License Version 2.0

About

A simple profiler viewer for Unity that can display massive CPU frames in an efficient way (unlike Unity's built-in profiler)

Resources

License

MPL-2.0, Unknown licenses found

Licenses found

MPL-2.0
LICENSE
Unknown
LICENSE.meta

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages