Add serialization start/end logging to the api

Change-Id: I62a2c5cf2b844ace6a02d4c0701a5db2cb7a3221
Merge "Add serialization start/end logging to the api"