Add support for measuring coverage

Change-Id: I219e14658c025fa13f3e0f8ba9dc6945ce777120