collect amount of RAM used during the build in metadata

first we need to figure out a reliable way of collecting this info.