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