Files
AIC-Project/Client/Assets/Script/3rd/XLua/Gen/UnityEngine_Profiling_ProfilerWrap.cs
T
2026-07-10 10:24:29 +08:00

876 lines
29 KiB
C#

#if USE_UNI_LUA
using LuaAPI = UniLua.Lua;
using RealStatePtr = UniLua.ILuaState;
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
#else
using LuaAPI = XLua.LuaDLL.Lua;
using RealStatePtr = System.IntPtr;
using LuaCSFunction = XLuaBase.lua_CSFunction;
#endif
using XLua;
using System.Collections.Generic;
namespace XLua.CSObjectWrap
{
using Utils = XLua.Utils;
public class UnityEngineProfilingProfilerWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
System.Type type = typeof(UnityEngine.Profiling.Profiler);
Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(type, L, translator, null, null,
null, null, null);
Utils.BeginClassRegister(type, L, __CreateInstance, 24, 8, 5);
Utils.RegisterFunc(L, Utils.CLS_IDX, "SetAreaEnabled", _m_SetAreaEnabled_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetAreaEnabled", _m_GetAreaEnabled_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "AddFramesFromFile", _m_AddFramesFromFile_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "BeginThreadProfiling", _m_BeginThreadProfiling_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "EndThreadProfiling", _m_EndThreadProfiling_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "BeginSample", _m_BeginSample_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "EndSample", _m_EndSample_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetRuntimeMemorySizeLong", _m_GetRuntimeMemorySizeLong_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetMonoHeapSizeLong", _m_GetMonoHeapSizeLong_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetMonoUsedSizeLong", _m_GetMonoUsedSizeLong_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "SetTempAllocatorRequestedSize", _m_SetTempAllocatorRequestedSize_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetTempAllocatorSize", _m_GetTempAllocatorSize_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetTotalAllocatedMemoryLong", _m_GetTotalAllocatedMemoryLong_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetTotalUnusedReservedMemoryLong", _m_GetTotalUnusedReservedMemoryLong_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetTotalReservedMemoryLong", _m_GetTotalReservedMemoryLong_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetTotalFragmentationInfo", _m_GetTotalFragmentationInfo_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetAllocatedMemoryForGraphicsDriver", _m_GetAllocatedMemoryForGraphicsDriver_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "EmitFrameMetaData", _m_EmitFrameMetaData_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "EmitSessionMetaData", _m_EmitSessionMetaData_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "SetCategoryEnabled", _m_SetCategoryEnabled_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "IsCategoryEnabled", _m_IsCategoryEnabled_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetCategoriesCount", _m_GetCategoriesCount_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetAllCategories", _m_GetAllCategories_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "supported", _g_get_supported);
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "logFile", _g_get_logFile);
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "enableBinaryLog", _g_get_enableBinaryLog);
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "maxUsedMemory", _g_get_maxUsedMemory);
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "enabled", _g_get_enabled);
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "enableAllocationCallstacks", _g_get_enableAllocationCallstacks);
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "areaCount", _g_get_areaCount);
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "usedHeapSizeLong", _g_get_usedHeapSizeLong);
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "logFile", _s_set_logFile);
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "enableBinaryLog", _s_set_enableBinaryLog);
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "maxUsedMemory", _s_set_maxUsedMemory);
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "enabled", _s_set_enabled);
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "enableAllocationCallstacks", _s_set_enableAllocationCallstacks);
Utils.EndClassRegister(type, L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CreateInstance(RealStatePtr L)
{
return LuaAPI.luaL_error(L, "UnityEngine.Profiling.Profiler does not have a constructor!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_SetAreaEnabled_xlua_st_(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
{
UnityEngine.Profiling.ProfilerArea _area;translator.Get(L, 1, out _area);
bool _enabled = LuaAPI.lua_toboolean(L, 2);
UnityEngine.Profiling.Profiler.SetAreaEnabled( _area, _enabled );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_GetAreaEnabled_xlua_st_(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
{
UnityEngine.Profiling.ProfilerArea _area;translator.Get(L, 1, out _area);
var gen_ret = UnityEngine.Profiling.Profiler.GetAreaEnabled( _area );
LuaAPI.lua_pushboolean(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_AddFramesFromFile_xlua_st_(RealStatePtr L)
{
try {
{
string _file = LuaAPI.lua_tostring(L, 1);
UnityEngine.Profiling.Profiler.AddFramesFromFile( _file );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_BeginThreadProfiling_xlua_st_(RealStatePtr L)
{
try {
{
string _threadGroupName = LuaAPI.lua_tostring(L, 1);
string _threadName = LuaAPI.lua_tostring(L, 2);
UnityEngine.Profiling.Profiler.BeginThreadProfiling( _threadGroupName, _threadName );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_EndThreadProfiling_xlua_st_(RealStatePtr L)
{
try {
{
UnityEngine.Profiling.Profiler.EndThreadProfiling( );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_BeginSample_xlua_st_(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING))
{
string _name = LuaAPI.lua_tostring(L, 1);
UnityEngine.Profiling.Profiler.BeginSample( _name );
return 0;
}
if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<UnityEngine.Object>(L, 2))
{
string _name = LuaAPI.lua_tostring(L, 1);
UnityEngine.Object _targetObject = (UnityEngine.Object)translator.GetObject(L, 2, typeof(UnityEngine.Object));
UnityEngine.Profiling.Profiler.BeginSample( _name, _targetObject );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Profiling.Profiler.BeginSample!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_EndSample_xlua_st_(RealStatePtr L)
{
try {
{
UnityEngine.Profiling.Profiler.EndSample( );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_GetRuntimeMemorySizeLong_xlua_st_(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
{
UnityEngine.Object _o = (UnityEngine.Object)translator.GetObject(L, 1, typeof(UnityEngine.Object));
var gen_ret = UnityEngine.Profiling.Profiler.GetRuntimeMemorySizeLong( _o );
LuaAPI.lua_pushint64(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_GetMonoHeapSizeLong_xlua_st_(RealStatePtr L)
{
try {
{
var gen_ret = UnityEngine.Profiling.Profiler.GetMonoHeapSizeLong( );
LuaAPI.lua_pushint64(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_GetMonoUsedSizeLong_xlua_st_(RealStatePtr L)
{
try {
{
var gen_ret = UnityEngine.Profiling.Profiler.GetMonoUsedSizeLong( );
LuaAPI.lua_pushint64(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_SetTempAllocatorRequestedSize_xlua_st_(RealStatePtr L)
{
try {
{
uint _size = LuaAPI.xlua_touint(L, 1);
var gen_ret = UnityEngine.Profiling.Profiler.SetTempAllocatorRequestedSize( _size );
LuaAPI.lua_pushboolean(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_GetTempAllocatorSize_xlua_st_(RealStatePtr L)
{
try {
{
var gen_ret = UnityEngine.Profiling.Profiler.GetTempAllocatorSize( );
LuaAPI.xlua_pushuint(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_GetTotalAllocatedMemoryLong_xlua_st_(RealStatePtr L)
{
try {
{
var gen_ret = UnityEngine.Profiling.Profiler.GetTotalAllocatedMemoryLong( );
LuaAPI.lua_pushint64(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_GetTotalUnusedReservedMemoryLong_xlua_st_(RealStatePtr L)
{
try {
{
var gen_ret = UnityEngine.Profiling.Profiler.GetTotalUnusedReservedMemoryLong( );
LuaAPI.lua_pushint64(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_GetTotalReservedMemoryLong_xlua_st_(RealStatePtr L)
{
try {
{
var gen_ret = UnityEngine.Profiling.Profiler.GetTotalReservedMemoryLong( );
LuaAPI.lua_pushint64(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_GetTotalFragmentationInfo_xlua_st_(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
{
Unity.Collections.NativeArray<int> _stats;translator.Get(L, 1, out _stats);
var gen_ret = UnityEngine.Profiling.Profiler.GetTotalFragmentationInfo( _stats );
LuaAPI.lua_pushint64(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_GetAllocatedMemoryForGraphicsDriver_xlua_st_(RealStatePtr L)
{
try {
{
var gen_ret = UnityEngine.Profiling.Profiler.GetAllocatedMemoryForGraphicsDriver( );
LuaAPI.lua_pushint64(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_EmitFrameMetaData_xlua_st_(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
{
System.Guid _id;translator.Get(L, 1, out _id);
int _tag = LuaAPI.xlua_tointeger(L, 2);
System.Array _data = (System.Array)translator.GetObject(L, 3, typeof(System.Array));
UnityEngine.Profiling.Profiler.EmitFrameMetaData( _id, _tag, _data );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_EmitSessionMetaData_xlua_st_(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
{
System.Guid _id;translator.Get(L, 1, out _id);
int _tag = LuaAPI.xlua_tointeger(L, 2);
System.Array _data = (System.Array)translator.GetObject(L, 3, typeof(System.Array));
UnityEngine.Profiling.Profiler.EmitSessionMetaData( _id, _tag, _data );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_SetCategoryEnabled_xlua_st_(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
{
Unity.Profiling.ProfilerCategory _category;translator.Get(L, 1, out _category);
bool _enabled = LuaAPI.lua_toboolean(L, 2);
UnityEngine.Profiling.Profiler.SetCategoryEnabled( _category, _enabled );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_IsCategoryEnabled_xlua_st_(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
{
Unity.Profiling.ProfilerCategory _category;translator.Get(L, 1, out _category);
var gen_ret = UnityEngine.Profiling.Profiler.IsCategoryEnabled( _category );
LuaAPI.lua_pushboolean(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_GetCategoriesCount_xlua_st_(RealStatePtr L)
{
try {
{
var gen_ret = UnityEngine.Profiling.Profiler.GetCategoriesCount( );
LuaAPI.xlua_pushuint(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_GetAllCategories_xlua_st_(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
if(gen_param_count == 1&& translator.Assignable<Unity.Profiling.ProfilerCategory[]>(L, 1))
{
Unity.Profiling.ProfilerCategory[] _categories = (Unity.Profiling.ProfilerCategory[])translator.GetObject(L, 1, typeof(Unity.Profiling.ProfilerCategory[]));
UnityEngine.Profiling.Profiler.GetAllCategories( _categories );
return 0;
}
if(gen_param_count == 1&& translator.Assignable<Unity.Collections.NativeArray<Unity.Profiling.ProfilerCategory>>(L, 1))
{
Unity.Collections.NativeArray<Unity.Profiling.ProfilerCategory> _categories;translator.Get(L, 1, out _categories);
UnityEngine.Profiling.Profiler.GetAllCategories( _categories );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Profiling.Profiler.GetAllCategories!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_supported(RealStatePtr L)
{
try {
LuaAPI.lua_pushboolean(L, UnityEngine.Profiling.Profiler.supported);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_logFile(RealStatePtr L)
{
try {
LuaAPI.lua_pushstring(L, UnityEngine.Profiling.Profiler.logFile);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_enableBinaryLog(RealStatePtr L)
{
try {
LuaAPI.lua_pushboolean(L, UnityEngine.Profiling.Profiler.enableBinaryLog);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_maxUsedMemory(RealStatePtr L)
{
try {
LuaAPI.xlua_pushinteger(L, UnityEngine.Profiling.Profiler.maxUsedMemory);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_enabled(RealStatePtr L)
{
try {
LuaAPI.lua_pushboolean(L, UnityEngine.Profiling.Profiler.enabled);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_enableAllocationCallstacks(RealStatePtr L)
{
try {
LuaAPI.lua_pushboolean(L, UnityEngine.Profiling.Profiler.enableAllocationCallstacks);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_areaCount(RealStatePtr L)
{
try {
LuaAPI.xlua_pushinteger(L, UnityEngine.Profiling.Profiler.areaCount);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_usedHeapSizeLong(RealStatePtr L)
{
try {
LuaAPI.lua_pushint64(L, UnityEngine.Profiling.Profiler.usedHeapSizeLong);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_logFile(RealStatePtr L)
{
try {
UnityEngine.Profiling.Profiler.logFile = LuaAPI.lua_tostring(L, 1);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_enableBinaryLog(RealStatePtr L)
{
try {
UnityEngine.Profiling.Profiler.enableBinaryLog = LuaAPI.lua_toboolean(L, 1);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_maxUsedMemory(RealStatePtr L)
{
try {
UnityEngine.Profiling.Profiler.maxUsedMemory = LuaAPI.xlua_tointeger(L, 1);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_enabled(RealStatePtr L)
{
try {
UnityEngine.Profiling.Profiler.enabled = LuaAPI.lua_toboolean(L, 1);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_enableAllocationCallstacks(RealStatePtr L)
{
try {
UnityEngine.Profiling.Profiler.enableAllocationCallstacks = LuaAPI.lua_toboolean(L, 1);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
}
}