Skip to content

Commit 920ddc3

Browse files
committed
Add RSS memory status collecting per test command
Add call to RSS memory collecting routine after each sent test lua command. Part of tarantool/tarantool-qa#98
1 parent 231f3e2 commit 920ddc3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/tarantool_server.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
from lib.utils import signame
4444
from lib.utils import warn_unix_socket
4545
from lib.utils import prefix_each_line
46+
from lib.utils import get_mem_stat_rss
4647
from lib.test import TestRunGreenlet, TestExecutionError
4748

4849

@@ -198,6 +199,9 @@ def send_command_raw(self, command, ts):
198199
color_log("DEBUG: tarantool's response for [{}]\n{}\n".format(
199200
command.rstrip(), prefix_each_line(' | ', result)),
200201
schema='tarantool command')
202+
if (Options().args.collect_statistics):
203+
color_log('RSS: {}\n' . format(get_mem_stat_rss()),
204+
schema='tarantool command')
201205
return result
202206

203207
def set_language(self, ts, language):

0 commit comments

Comments
 (0)