Skip to content

Logger and visualizer that can be used to investigate where a program is spending time, especially suited to gameloops.

License

Notifications You must be signed in to change notification settings

bartwe/StaxelTraceViewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StaxelTraceViewer

Logger and visualizer that can be used to investigate where a program is spending time, especially suited to gameloops.

        void Example() {
            if (File.Exists("staxeltrace.on"))
                TraceRecorder.Start();

            using (new TraceScope(TraceKeys.WorldRenderer_RenderChunks)) {
                // timed work
                
            }

            TraceRecorder.Flush(); // periodically call to write to disk, 

            using (new TraceScope(TraceKeys.WorldRenderer_Cleanup)) {
                // timed work

            }

            TraceRecorder.Stop();
        }

Screenshot of the vierwer being used to look at a single rendered frame in @StaxelGame

About

Logger and visualizer that can be used to investigate where a program is spending time, especially suited to gameloops.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages