Skip to content

Commit 56874c8

Browse files
ShadowCurseroypat
authored andcommitted
chore: add more debug info to the get_stable_rss_mem_by_pid
Print abs_diff and abs_delta values for simpler debugging if the function fails. Signed-off-by: Egor Lazarchuk <[email protected]>
1 parent b240124 commit 56874c8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/integration_tests/functional/test_balloon.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,11 @@ def get_rss_from_pmap():
3333
first_rss = get_rss_from_pmap()
3434
time.sleep(1)
3535
second_rss = get_rss_from_pmap()
36-
print(f"RSS readings: {first_rss}, {second_rss}")
3736
abs_diff = abs(first_rss - second_rss)
3837
abs_delta = 100 * abs_diff / first_rss
38+
print(
39+
f"RSS readings: old: {first_rss} new: {second_rss} abs_diff: {abs_diff} abs_delta: {abs_delta}"
40+
)
3941
assert abs_delta < percentage_delta or abs_diff < 2**10
4042
return second_rss
4143

0 commit comments

Comments
 (0)