[RFC] Common: Add a buildin profiler

Pass by const reference.