Various features/facilities for developers who are working on Hammerspoon itself, or writing extensions for it. It is extremely unlikely that you should need any part of this extension, in a normal user configuration.
Signature | hs.crash.attemptMemoryRelease() |
---|---|
Type | Function |
Description | Attempts to reduce RAM usage of Hammerspoon Parameters:
Returns:
Notes:
|
Signature | hs.crash.crash() |
---|---|
Type | Function |
Description | Causes Hammerspoon to immediately crash Parameters:
Returns:
Notes:
|
Signature | hs.crash.crashKV(key, value) |
---|---|
Type | Function |
Description | Sets a key/value pair in any Crashlytics crash dump generated by this Hamerspoon session Parameters:
Returns:
|
Signature | hs.crash.crashLog(logMessage) |
---|---|
Type | Function |
Description | Leaves a breadcrumb log message in any Crashlytics crash dump generated by this Hammerspoon session Parameters:
Returns:
Notes:
|
Signature | hs.crash.dumpCLIBS() -> table |
---|---|
Type | Function |
Description | Dumps the contents of Lua's CLIBS registry Parameters:
Returns:
Notes:
|
Signature | hs.crash.residentSize() -> integer or nil |
---|---|
Type | Function |
Description | Gets the resident size of the Hammerspoon process Parameters:
Returns:
|
Signature | hs.crash.throwObjCException(name, message) |
---|---|
Type | Function |
Description | Causes Hammerspoon to generate an Objective C exception Parameters:
Returns:
Notes:
|