Git Product home page Git Product logo

snappy-profiler-viewer's Introduction

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

snappy-profiler-viewer's People

Contributors

aquageneral avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.