Implement stats

Change-Id: I6beae0f0dafd08ad880226151893626aa0b6b047
exception.cc: fixup some uninitialized members

Change-Id: I57cb518472b7d6b408db84ca8759c5c91c35f349