Alfred 2 Workflow to List/Kill Top Processes by Memory/Cpu Usage. The initial motive is to avoid frequent visits to the Activity Monitor when the fan goes loud.
top
: Show a mixed processes list based on top cpu/memory usage.
top /m
,top /mem
,top /memory
to show processes ranked by memory usagetop /c
,top /cpu
, to show processes ranked by cpu usage
kill
: Filter process to kill.lsof
: List files opened by process id
none
: The default action is to list files opened by process ID^
key tokill
โ
key to force kill (kill -9
)alt
: nice cpu priority
none
: The default action is to kill by process IDโ
key to force kill (kill -9
)
none
: The default action is to reveal file in Finder
- To search for process state, use :idle, :sleep, :stopped, :zombie, :uninterruptible, :runnable, etc.
Two ways are provided:
-
You can download the Top Processes.alfredworkflow and import to Alfred 2. This method is suitable for regular users.
-
You can
git clone
orfork
this repository and userake install
andrake uninstall
to install. Checkrake -T
for available tasks. This method create a symlink to the alfred workflow directory: "~/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows". This method is suitable for developers.
Copyright (c) 2013 Zhao Cai [email protected]
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.