hammerspoon2-docs
    Preparing search index...

    Function cpuCoreUsage

    • Measures how busy each CPU core is over an interval. See cpuUsage() for how the measurement works.

      Parameters

      • Optionalseconds: number

        How long to measure for, in seconds, up to an hour (3600). Defaults to 1.

      Returns Promise<HSCPUUsage[]>

      A Promise that resolves with one entry per core, in the order macOS numbers them, or rejects with an EINVALIDARG error if seconds isn't a positive number no larger than 3600