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 |
|
Source | extensions/crash/crash.lua line 40 |
Signature | hs.crash.crash() |
---|---|
Type | Function |
Description | Causes Hammerspoon to immediately crash |
Parameters |
|
Returns |
|
Notes |
|
Source | extensions/crash/libcrash.m line 12 |
Signature | hs.crash.crashKV(key, value) |
---|---|
Type | Function |
Description | Sets a key/value pair in any Sentry crash dump generated by this Hammerspoon session |
Parameters |
|
Returns |
|
Source | extensions/crash/libcrash.m line 72 |
Signature | hs.crash.crashLog(logMessage) |
---|---|
Type | Function |
Description | Leaves a breadcrumb log message in any Sentry crash dump generated by this Hammerspoon session |
Parameters |
|
Returns |
|
Notes |
|
Source | extensions/crash/libcrash.m line 53 |
Signature | hs.crash.dumpCLIBS() -> table |
---|---|
Type | Function |
Description | Dumps the contents of Lua's CLIBS registry |
Parameters |
|
Returns |
|
Notes |
|
Source | extensions/crash/crash.lua line 7 |
Signature | hs.crash.residentSize() -> integer or nil |
---|---|
Type | Function |
Description | Gets the resident size of the Hammerspoon process |
Parameters |
|
Returns |
|
Source | extensions/crash/libcrash.m line 107 |
Signature | hs.crash.throwObjCException(name, message) |
---|---|
Type | Function |
Description | Causes Hammerspoon to generate an Objective C exception |
Parameters |
|
Returns |
|
Notes |
|
Source | extensions/crash/libcrash.m line 31 |