Add hierarchical metric ids and an aggregate profiler