metrics: Fix port iterator after remove

Update the iterator after removing while looping through the hashmap.
Also cleaned up some memory leak issues with string_view.

Also changed to use steady_timer for monotonic time.

Google-Bug-Id: 271869660
Change-Id: I2363bbd451265d0e40ed44e690caab0b2b95fe00
Signed-off-by: Willy Tu <wltu@google.com>
(cherry picked from commit 92d45d6b44f8ac97cc298f9cefa0670b3344eafd)
1 file changed
tree: 964fa14bf6aaed24759dee3d4ddf88d0a9c0f0a7
  1. conf/
  2. dynamic-layers/
  3. meta-nuvoton-npcm8xx/
  4. recipes-connectivity/
  5. recipes-core/
  6. recipes-google/
  7. recipes-kernel/
  8. recipes-phosphor/
  9. LICENSE
  10. README.md
README.md

meta-gbmc-staging

This repository contains additions to the openbmc/meta-google layer that are not yet ready for OpenBMC inclusion.

How to use this layer

  1. Clone openbmc/openbmc from GitHub.
  2. Clone this layer from GitHub into a subdirectory of openbmc.