Skip to content

Instantly share code, notes, and snippets.

@martinrusev
Created October 16, 2015 10:23
Show Gist options
  • Save martinrusev/f595769ab89eb0b1992d to your computer and use it in GitHub Desktop.
Save martinrusev/f595769ab89eb0b1992d to your computer and use it in GitHub Desktop.
Amon Process Ignore
def is_ignored(self, fragment):
ignore_list = ['indicator', 'unity', 'gnome', 'zeitgeist', 'notify', 'hud', 'colord',
'whoopsie', 'bluetooth', 'ubuntu', 'gtk', 'watchdog', 'bdi', 'jbd',
'kworker', 'flush', 'vbox', 'upstart', 'ksoftirqd', 'irq', 'dbus',
'migration', 'sh', 'ssh', 'nautilus', 'compiz', 'update', 'at-spi',
'telepathy', 'mission', 'network', 'cupsd', 'pulseaudio', 'gvfs',
'udevd', 'dnsmasq', 'init', 'zsh', 'polkit', 'bamfdaemon',
'modem', 'pid', 'console', 'dconf', 'gconf', 'mount', 'dhclient', 'su', 'du', 'df', 'apt',
'sort', 'sleep', 'goa', 'plugin', 'kthreadd', 'kswap', 'khung', 'launc',
'udisks', 'deja', 'cat', 'gdu', 'nm-', 'avahi', 'rtkit', 'accounts', 'acpid',
'atd', 'getty', 'system-', 'lightdm', 'geoclue-master' ,'upowerd' ,'dropbox', 'System Idle Process']
lower_case = fragment.lower()
return any(lower_case.startswith(w) for w in ignore_list)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment