Compute framework stats in one iteration
Compute framework stats in one iteration

Rather than iterate over 'frameworks' and 'completed_frameworks' once
to update the slave mappings and a second time to calculate stats for
the frameworks, move that work into a single loop.

This also removes a 'concat' call that was creating a temporary Array
used to calculate stats once and then thrown away.

Review: http://reviews.apache.org/r/12880

dforsyth/mesos,andschwa/mesos,jpeach/mesos,Gilbert88/mesos,reneploetz/mesos,zmalik/mesos,dforsyth/mesos,craimbert/mesos,Gilbert88/mesos,craimbert/mesos,kaysoky/mesos,yuquanshan/customizedMesos,andschwa/mesos,abudnik/mesos,reneploetz/mesos,asamerh4/mesos,neilconway/mesos,yuquanshan/customizedMesos,reneploetz/mesos,verizonlabs/mesos,andschwa/mesos,Gilbert88/mesos,verizonlabs/mesos,yuquanshan/customizedMesos,reneploetz/mesos,yuquanshan/customizedMesos,craimbert/mesos,gsantovena/mesos,neilconway/mesos,verizonlabs/mesos,gsantovena/mesos,neilconway/mesos,asamerh4/mesos,jpeach/mesos,zmalik/mesos,zmalik/mesos,Aman-Jain-14/customizedMesos,neilconway/mesos,andschwa/mesos,chhsia0/mesos,andschwa/mesos,chhsia0/mesos,reneploetz/mesos,asamerh4/mesos,dforsyth/mesos,kaysoky/mesos,verizonlabs/mesos,gsantovena/mesos,kaysoky/mesos,asamerh4/mesos,jpeach/mesos,yuquanshan/customizedMesos,Gilbert88/mesos,abudnik/mesos,neilconway/mesos,jpeach/mesos,asamerh4/mesos,abudnik/mesos,kaysoky/mesos,zmalik/mesos,Aman-Jain-14/customizedMesos,craimbert/mesos,Aman-Jain-14/customizedMesos,Gilbert88/mesos,andschwa/mesos,kaysoky/mesos,dforsyth/mesos,yuquanshan/customizedMesos,dforsyth/mesos,gsantovena/mesos,andschwa/mesos,neilconway/mesos,reneploetz/mesos,abudnik/mesos,gsantovena/mesos,Aman-Jain-14/customizedMesos,craimbert/mesos,Gilbert88/mesos,Aman-Jain-14/customizedMesos,zmalik/mesos,zmalik/mesos,chhsia0/mesos,abudnik/mesos,kaysoky/mesos,abudnik/mesos,chhsia0/mesos,yuquanshan/customizedMesos,abudnik/mesos,craimbert/mesos,zmalik/mesos,verizonlabs/mesos,dforsyth/mesos,neilconway/mesos,Gilbert88/mesos,Aman-Jain-14/customizedMesos,jpeach/mesos,craimbert/mesos,asamerh4/mesos,chhsia0/mesos,kaysoky/mesos,jpeach/mesos,reneploetz/mesos,gsantovena/mesos,asamerh4/mesos,gsantovena/mesos,chhsia0/mesos,Aman-Jain-14/customizedMesos,verizonlabs/mesos,jpeach/mesos,dforsyth/mesos,verizonlabs/mesos,chhsia0/mesos