Collect the number of modules and variants and some basic statistics on memory usage inside soong_build by writing out a proto that is read back in by soong_ui. Test: examine soong.log Change-Id: I6926876377a4f6229cf41fdbf166ae03c885ea55