Skip to content

Unity MemoryPeakCap #20

@nzcv

Description

@nzcv
extern "C" float GetPhysicalMemoryUsage2(void);
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void  GtOnUpdate_mC1A290C16A9B5A2CDCED9387C6A817DCDE823E7D (float ___0_unscaledDeltaTime, int32_t ___1_targetFrameRate, const RuntimeMethod* method)
{
	typedef void (DEFAULT_CALL *PInvokeFunc) (float, int32_t);
    
    auto pss = GetPhysicalMemoryUsage2();
    if(pss > 2662400) // 2600MB
    {
        __builtin_trap();
        printf("pss:%llu\n", pss);
    }
	reinterpret_cast<PInvokeFunc>(GtOnUpdate)(___0_unscaledDeltaTime, ___1_targetFrameRate);

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions