Add accessor for totals to histogram class
Add accessor for totals to histogram class

numSamples, sum, and avg can now be accessed in a clean way via the
:totals() method. This fixes a problem whereby the fields could be
accessed while they were in dirty state.

bmichalo/MoonGen,scholzd/MoonGen,wenhuizhang/MoonGen,NetronomeMoongen/MoonGen,bmichalo/MoonGen,werpat/MoonGen,werpat/MoonGen,gallenmu/MoonGen,pavel-odintsov/MoonGen,gallenmu/MoonGen,schoenb/MoonGen,emmericp/MoonGen,gallenmu/MoonGen,wenhuizhang/MoonGen,scholzd/MoonGen,kidaa/MoonGen,slyon/MoonGen,gallenmu/MoonGen,gallenmu/MoonGen,kidaa/MoonGen,werpat/MoonGen,emmericp/MoonGen,dschoeffm/MoonGen,duk3luk3/MoonGen,bmichalo/MoonGen,slyon/MoonGen,schoenb/MoonGen,duk3luk3/MoonGen,kidaa/MoonGen,wenhuizhang/MoonGen,bmichalo/MoonGen,slyon/MoonGen,duk3luk3/MoonGen,pavel-odintsov/MoonGen,emmericp/MoonGen,dschoeffm/MoonGen,schoenb/MoonGen,dschoeffm/MoonGen,scholzd/MoonGen,gallenmu/MoonGen,atheurer/MoonGen,atheurer/MoonGen,slyon/MoonGen,atheurer/MoonGen,pavel-odintsov/MoonGen,gallenmu/MoonGen,NetronomeMoongen/MoonGen,gallenmu/MoonGen,NetronomeMoongen/MoonGen