def aggregate(self, event):
total = event.null()<EOL>for function in compat_itervalues(self.functions):<EOL><INDENT>try:<EOL><INDENT>total = event.aggregate(total, function[event])<EOL><DEDENT>except UndefinedEvent:<EOL><INDENT>return<EOL><DEDENT><DEDENT>self[event] = total<EOL>
Aggregate an event for the whole profile.