[RFC] Common: Add a buildin profiler

Would inline here actually do anything? AFAIK the compiler will just inline on its own if necessary.