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

pfalcon / micropython / 1296
97%
master: 98%

Build:
Build:
LAST BUILD BRANCH: pfalcon
DEFAULT BRANCH: master
Ran 05 Aug 2018 07:20PM UTC
Jobs 1
Files 236
Run time 25s
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
1296

push

travis-ci

pfalcon
py/malloc: realloc: Count only positive increments in total_bytes_allocated.

Clearly define that "total" counter is a measure of memory traffic, aka
memory "hungriness", so should only monotonically grow. For statistic
which can both increase and decrease, we have "current memory" counter,
don't mix semantics on "total" and "current".

As an example, consider following alloc scenario:

1. Block of 2K was allocated.
2. It was reallocated to 1K.
3. Another block of 3K was allocated.
4. First block was reallocated to 1.5K.
4. The block of 3K was freed.

Then counters will be (assuming they were at 0s at the beginning):

total: 5.5K
current: 1.5K
peak: 4.5K

Each of these counters has specific semantics: current means that at
the end of described scenario, 1.5K was still allocated. Peak of 4.5K
means that maximum amount of simultaneously allocated memory was 4.5K.
And total of 5.5K means that processing required total of 5.5K memory.
(Not necessary simultaneously, again, it's a measure of memory hungriness;
for example, in the case above, we may question why it started with
allocating 2K if next it shrank it to 1K; if it started with allocating
1K, its "total" would be 4.5K, signifying that such version would be
less "memory hungry").

17979 of 18345 relevant lines covered (98.0%)

324494.1 hits per line

Jobs
ID Job ID Ran Files Coverage
3 1296.3 (NAME="unix coverage build and tests") 05 Aug 2018 07:20PM UTC 0
98.0
Travis Job 1296.3
Source Files on build 1296
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1296
  • e80a8775 on github
  • Prev Build on pfalcon (#1293)
  • Next Build on pfalcon (#1297)
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