codahale/metrics — pull request #136 by Newtopian (2011-12-14 07:53:19+00:00)
Title: Add absolute values to JVM Metrics + fix test platform and locale dependency

**Additional metrics for Dynamic memory profiles**
The changes below are usefull for VM that are configured to have
Dynamic memory profile.

* **metrics-core** : Added heap and non heap absoute values to the
VirtualMachineMetrics.java such that they can be reported through
the servlet.

* **metrics-servlet**: changed the servlet to report the additionnal
values so that absolutes can be calculated for all other JVM metrics.

**Test fix for platform and locale independence**
The changes below are to fix platform and locale dependencies of unit tests.
some changes were necessary in the main code though prior behaviour was kept.
All changes are in metrics-core.

* **ConsoleReporter** - Added locale as constructor properties
Defaults to the system locale (prior behaviour)

* **ConsoleReporterTest** - Creates ConsoleReporter with US locale
To match formatted dates in the hard coded strings.

* **AbstractPollingReporterTest** - changed the split regex such that
It supports all major platforms in a way that remains
compatible with expected values.