Пример #1
0
        public GameProfilingSystem(IServiceRegistry registry) : base(registry)
        {
            DrawOrder = 0xffffff;

            gcProfiler = new GcProfiling();

            gcMemoryStringBase      = "Memory>        Total: {0} Peak: {1} Last allocations: {2}";
            gcCollectionsStringBase = "Collections>   Gen 0: {0} Gen 1: {1} Gen 3: {2}";
        }
Пример #2
0
        public GameProfilingSystem(IServiceRegistry registry) : base(registry)
        {
            DrawOrder = 0xfffffe;

            gcProfiler = new GcProfiling();

            gcMemoryStringBase      = "Allocated memory> Total: {0:0.00}MB Peak: {1:0.00}MB Allocations: {2:0.00}KB";
            gcCollectionsStringBase = "Garbage collections> Gen0: {0}, Gen1: {1}, Gen2: {2}";
        }