stats: Make Stats::Group::mergeStatGroup public
authorAndreas Sandberg <andreas.sandberg@arm.com>
Mon, 5 Oct 2020 14:13:06 +0000 (15:13 +0100)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Thu, 8 Oct 2020 09:43:11 +0000 (09:43 +0000)
commit3e3152fe0b69b9279729d1de878da2a84ba41826
tree9996fdf6ff75f4f3be3dca6f1f36f38dac95bf11
parent79a3091605e2188e5f50c522ce48ab6847cee344
stats: Make Stats::Group::mergeStatGroup public

The stat system currently assumes that the decision to merge groups is
done at construction time. This makes it hard to implement global
statistics that live in a single global group.

This change adds some error checking to mergeStatGroup and marks it as
a public method.

Change-Id: I6a42f48545c5ccfcd0672bae66a5bc86bb042f13
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/35615
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/base/stats/group.cc
src/base/stats/group.hh