Hierarchical flow metric