• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

prometheus / client_ruby / 517
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: fix_with_labels
DEFAULT BRANCH: master
Ran 09 Oct 2019 04:29PM UTC
Jobs 4
Files 64
Run time 3min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
517

Pull #160

travis-ci

web-flow
Reduce memory bloating in FileMappedDict when reading metrics.

During the read path (metrics export) we open all existing metric files
and read through them in order to aggregate metrics across different
processes. When reading non-empty files we end up parsing file content
twice: first during FileMappedDict initialisation, then again in the
caller site (`all_values`).

This commit refactors FileMappedDict so that while the `@positions` map
is populated at creation time, the actual metric values are read only
when explicitly requested. This avoids the memory bloat of unpacking
file content twice.
Pull Request #160: Reduce memory bloating in FileMappedDict when reading metrics.

9 of 9 new or added lines in 1 file covered. (100.0%)

2958 of 2958 relevant lines covered (100.0%)

44.11 hits per line

Jobs
ID Job ID Ran Files Coverage
1 517.1 (2.3.8) 09 Oct 2019 04:29PM UTC 0
100.0
Travis Job 517.1
2 517.2 (2.4.5) 09 Oct 2019 04:29PM UTC 0
100.0
Travis Job 517.2
3 517.3 (2.5.3) 09 Oct 2019 04:29PM UTC 0
100.0
Travis Job 517.3
5 517.5 (jruby-9.1.9.0) 09 Oct 2019 04:32PM UTC 0
0.0
Travis Job 517.5
Source Files on build 517
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #517
  • Pull Request #160
  • PR Base - master (#515)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc