Create stats_buffer_writer
am: 962cc23b9f

Change-Id: Ie46fc58097da952e0e26bb27f13880c3498b5411