hammerspoon2-docs
    Preparing search index...

    Function memoryPressure

    • How short of memory the system is right now, as macOS judges it. This is the same measure as the graph in Activity Monitor's Memory tab. To be told when it changes, use on("memoryPressure", ...).

      Returns "warning" | "normal" | "critical" | null

      The memory pressure level, or null if macOS wouldn't say