Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 780 Bytes

README.md

File metadata and controls

27 lines (18 loc) · 780 Bytes

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