Pull request for all the remaining patches, including the new performance monitors.

Should we keep the perf monitor or just remove it all together? Is all its functionality part of gperf?