Fix JSON result reporter to skip duplicates

The JSON Result Reporter was reporting duplicate metric values when
multiple performance tests were being executed in the same test plan.
For example, if cold and hot app start up tests were being run for
dialer and settings in a single test plan, the metrics for dialer were
being reported twice. This was because the test metrics utility object
was holding on to the metrics after writing them to the file. Erasing
the already reported metrics from the object solved the problem

Test: make catbox
This change has been tested manually by executing the test on a locally
connected reference device.

Bug: 278581155
Change-Id: I149dbdc8b3b609041d64f7865ed554bdf8ad8074
1 file changed
tree: acc2ac5748e2f919af848cbd1c4bf025f6b9ad6a
  1. report/
  2. target_preparers/
  3. tools/
  4. OWNERS