def process_build_metrics(context, build_processors):
build_metrics = OrderedDict()<EOL>for p in build_processors:<EOL><INDENT>p.reset()<EOL><DEDENT>for p in build_processors:<EOL><INDENT>build_metrics.update(p.build_metrics)<EOL><DEDENT>return build_metrics<EOL>
use processors to collect build metrics.