base-stats: Print the name of stats sharing the same name
authorHoa Nguyen <hoanguyen@ucdavis.edu>
Sat, 5 Dec 2020 07:57:14 +0000 (23:57 -0800)
committerHoa Nguyen <hoanguyen@ucdavis.edu>
Thu, 10 Dec 2020 05:19:37 +0000 (05:19 +0000)
commit6c07c011f5c7e6ae453e06eb8af963c76f00fcc0
treeb84ed632a76e46b7b2a311e3128124bb3359c512
parent55584fb6b9ad5b83b8b76825ea385bf5db4aef2b
base-stats: Print the name of stats sharing the same name

Having stats of the same name within the same group result in an error.
This commit adds the name to the error message to make it easier to find
the Stats::Group caused the error.

Change-Id: I4010d5d949d1c943d2dd1e2fca0aafcbf62e3ee1
Signed-off-by: Hoa Nguyen <hoanguyen@ucdavis.edu>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/38337
Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br>
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