Exemplo n.º 1
0
    private DataStatistics() //如果在测完数据不手动设置instance == null,则会出现数据堆积。因为这是个单例模式
    {
        instance = this;

        if (MainEditor.labelTitle.Equals(MainEditor.ANDRIOD_PLATFORM))
        {
            standardPlatformData = new AndriodStandardData();
        }
        else if (MainEditor.labelTitle.Equals(MainEditor.PC_PLATFORM))
        {
            standardPlatformData = new PCStandardData();
        }

        profilerProperty = new ProfilerProperty();

        monoProperty          = new Property("MonoMemory");
        textureProperty       = new Property("TextureMemory");
        animationProperty     = new Property("AnimationMemory");
        audioProperty         = new Property("AudioMemory");
        meshProperty          = new Property("MeshMemory");
        gameobjectProperty    = new Property("GameObjects");
        drawCallProperty      = new Property("DrawCalls");
        trisProperty          = new Property("Tris");
        fpsProperty           = new RateProperty("FPS", standardPlatformData.FPS);
        renderingTimeProperty = new Property("CpuRenderingTime");
        animationTimeProperty = new Property("CpuAnimationTime");
        uiTimeProperty        = new Property("CpuUiTime");
        scriptsTimeProperty   = new Property("CpuScriptsTime");
    }
Exemplo n.º 2
0
 set => SetValue(RateProperty, value);