Preserve the trace function in @coverage

Improves test coverage measurement of profilehooks's own tests.