diff options
author | Darrick J. Wong <djwong@kernel.org> | 2024-02-09 02:33:35 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-03-14 04:37:58 +0300 |
commit | 4b4f0876ab74167cc402ccd5ce9154e7dc666829 (patch) | |
tree | 17274b58e78f71a8763cf1e035022a32b19be6f9 /tools/perf/scripts/python/task-analyzer.py | |
parent | cdbfa228a5537dfd7cbd8532701b0c8af70c97b8 (diff) | |
download | linux-4b4f0876ab74167cc402ccd5ce9154e7dc666829.tar.xz |
bcachefs: mean_and_variance: put struct mean_and_variance_weighted on a diet
The only caller of this code (time_stats) always knows the weights and
whether or not any information has been collected. Pass this
information into the mean and variance code so that it doesn't have to
store that information. This reduces the structure size from 24 to 16
bytes, which shrinks each time_stats counter to 192 bytes from 208.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions