martinrusev
10/16/2015 - 10:23 AM

Amon Process Ignore

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)