[Unity]使用UnityStats类在开发时统计各项指标

2020/08 21 23:08
namespace UnityEditor
{
    public sealed class UnityStats
    {
        public UnityStats();

        public static int ibUploadBytes { get; }
        public static int ibUploads { get; }
        public static int vboUploadBytes { get; }
        public static int vboUploads { get; }
        public static int vboTotalBytes { get; }
        public static int vboTotal { get; }
        public static int screenBytes { get; }
        public static string screenRes { get; }
        public static int usedTextureCount { get; }
        public static int usedTextureMemorySize { get; }
        public static int renderTextureBytes { get; }
        public static int renderTextureCount { get; }
        public static float audioStreamLoad { get; }
        public static float audioDSPLoad { get; }
        public static float audioClippingAmount { get; }
        public static float audioLevel { get; }
        public static float renderTime { get; }
        public static int batches { get; }
        public static int drawCalls { get; }
        public static int dynamicBatchedDrawCalls { get; }
        public static int staticBatchedDrawCalls { get; }
        public static int instancedBatchedDrawCalls { get; }
        public static int dynamicBatches { get; }
        public static int visibleSkinnedMeshes { get; }
        public static int staticBatches { get; }
        public static int setPassCalls { get; }
        public static int triangles { get; }
        public static int vertices { get; }
        public static int shadowCasters { get; }
        public static int renderTextureChanges { get; }
        public static float frameTime { get; }
        public static int instancedBatches { get; }
        public static int visibleAnimations { get; }
    }
}