Log profiling info from maintenance scripts.

Previously, maintenance scripts did not log profiling info.

Change-Id: Ib63dd54b815cca774cd764f28505f9dbdfd02cfc
Merge "Log profiling info from maintenance scripts."