profcollect: Refactor tracing code to a util class

Change-Id: I2394687a495bb5bb2595fcc7b33315e75f77dc12
Test: m services
2 files changed