stats: Ignore non-Group objects in stat hierarchy

Some objects, such as SystemC modules, are not a subclass of
Stat::Group. Calling the addStatGroup function on them causes errors.
This changes ignores those objects that are not Stat::Group in the stat

Signed-off-by: Chun-Chen TK Hsu <>
Change-Id: I9b62419417b7af7331461fbfaf15e45a4ee2b35f
Reviewed-by: Jason Lowe-Power <>
Reviewed-by: Andreas Sandberg <>
Maintainer: Jason Lowe-Power <>
Maintainer: Andreas Sandberg <>
Tested-by: kokoro <>
1 file changed