hs.crash
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.
API Overview
- Functions - API calls offered directly by the extension
API Documentation
Functions
attemptMemoryRelease
| Signature | hs.crash.attemptMemoryRelease() |
|---|---|
| Type | Function |
| Description |
Attempts to reduce RAM usage of Hammerspoon |
| Parameters |
|
| Returns |
|
| Notes |
|
| Source | extensions/crash/crash.lua line 40 |
crash
| Signature | hs.crash.crash() |
|---|---|
| Type | Function |
| Description |
Causes Hammerspoon to immediately crash |
| Parameters |
|
| Returns |
|
| Notes |
|
| Source | extensions/crash/libcrash.m line 12 |
crashKV
| 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 |
crashLog
| 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 |
dumpCLIBS
| 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 |
residentSize
| 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 |
throwObjCException
| 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 |
© 2014–2017 Hammerspoon contributors
Licensed under the MIT License.
https://www.hammerspoon.org/docs/hs.crash.html