Add m6_perf tools for doing performance logging of running apps with low cost, can be optionally compiled out