Version: stable
FUNCTION | |
---|---|
crash.write_dump() | writes crash dump |
crash.set_file_path() | sets the file location for crash dumps |
crash.load_previous() | loads a previously written crash dump |
crash.release() | releases a previously loaded crash dump |
crash.set_user_field() | stores user-defined string value |
crash.get_modules() | get all loaded modules from when the crash occured |
crash.get_user_field() | reads user field from a loaded crash dump |
crash.get_sys_field() | reads a system field from a loaded crash dump |
crash.get_signum() | read signal number from a crash report |
crash.get_backtrace() | read backtrace recorded in a loaded crash dump |
crash.get_extra_data() | read text blob recorded in a crash dump |
CONSTANT | |
---|---|
crash.SYSFIELD_ENGINE_VERSION | engine version as release number |
crash.SYSFIELD_ENGINE_HASH | engine version as hash |
crash.SYSFIELD_DEVICE_MODEL | device model as reported by sys.get_sys_info |
crash.SYSFIELD_MANUFACTURER | device manufacturer as reported by sys.get_sys_info |
crash.SYSFIELD_SYSTEM_NAME | system name as reported by sys.get_sys_info |
crash.SYSFIELD_SYSTEM_VERSION | system version as reported by sys.get_sys_info |
crash.SYSFIELD_LANGUAGE | system language as reported by sys.get_sys_info |
crash.SYSFIELD_DEVICE_LANGUAGE | system device language as reported by sys.get_sys_info |
crash.SYSFIELD_TERRITORY | system territory as reported by sys.get_sys_info |
crash.SYSFIELD_ANDROID_BUILD_FINGERPRINT | android build fingerprint |
crash.SYSFIELD_MAX | The max number of sysfields. |
crash.USERFIELD_MAX | The max number of user fields. |
crash.USERFIELD_SIZE | The max size of a single user field. |
crash.write_dump()
PARAMETERS
crash.set_file_path(path)
PARAMETERS
path |
file path to use |
crash.load_previous()
PARAMETERS
RETURNS
handle |
handle to the loaded dump, or nil if no dump was found |
crash.release(handle)
PARAMETERS
handle |
handle to loaded crash dump |
crash.set_user_field(index,value)
PARAMETERS
index |
slot index. 0-indexed |
value |
string value to store |
crash.get_modules(handle)
PARAMETERS
handle |
crash dump handle |
RETURNS
modules |
module table |
crash.get_user_field(handle,index)
PARAMETERS
handle |
crash dump handle |
index |
user data slot index |
RETURNS
value |
user data value recorded in the crash dump |
crash.get_sys_field(handle,index)
PARAMETERS
handle |
crash dump handle |
index |
RETURNS
value |
value recorded in the crash dump, or nil if it didn't exist |
crash.get_signum(handle)
PARAMETERS
handle |
crash dump handle |
RETURNS
signal |
signal number |
crash.get_backtrace(handle)
PARAMETERS
handle |
crash dump handle |
RETURNS
backtrace |
table containing the backtrace |
crash.get_extra_data(handle)
PARAMETERS
handle |
crash dump handle |
RETURNS
blob |
string with the platform specific data |
engine version as release number
engine version as release number
engine version as hash
engine version as hash
device model as reported by sys.get_sys_info
device model as reported by sys.get_sys_info
device manufacturer as reported by sys.get_sys_info
device manufacturer as reported by sys.get_sys_info
system name as reported by sys.get_sys_info
system name as reported by sys.get_sys_info
system version as reported by sys.get_sys_info
system version as reported by sys.get_sys_info
system language as reported by sys.get_sys_info
system language as reported by sys.get_sys_info
system device language as reported by sys.get_sys_info
system device language as reported by sys.get_sys_info
system territory as reported by sys.get_sys_info
system territory as reported by sys.get_sys_info
android build fingerprint
android build fingerprint
The max number of sysfields.
The max number of sysfields.
The max number of user fields.
The max number of user fields.
The max size of a single user field.
The max size of a single user field.