box / box/memsniff

Display is not stable-sorted

Open
#10 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
144
Forks
16
PR merge metrics
No merged PRs in 30d

Description

When using the -cumulative flag to measure total traffic from just one specific page, the order of the lines in the output moves on each refresh even in the absence of traffic, with results not changing.

It appears that all lines with the same result for max(size) and sum(size) move their relative locations, suggesting the sort method should include the key as the last element of the ordering rule, to get a stable display on a stable system.

Example from such a capture:

logement-cache_bootstrap-logement-cache-_multi0-variables 1048205 1048205
logement-cache_views-logement-cache-_multi0-views_data%253Afr 1048205 1048205
logement-cache-logement-cache-_multi0-schema 1048205 1048205
logement-cache_views-logement-cache-_multi1-views_data%253Afr 1048205 1048205
logement-cache_views-logement-cache-_multi2-views_data%253Afr 1048205 1048205

In this example, these five lines near the top of the report are constantly switching their relative positions.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.