Add a simple profiling decorator.

Change-Id: I433d8296d15081d05a58e45dcf92218338e52a90