Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
Mynij-unit-tests
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Alexandra Rogova
Mynij-unit-tests
Commits
bda7b748
Commit
bda7b748
authored
Feb 24, 2020
by
Alexandra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test with ram as max
parent
b332f184
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
564 additions
and
570 deletions
+564
-570
Milestone1/results/add_csv.csv
Milestone1/results/add_csv.csv
+256
-256
Milestone1/results/add_csv_monitor.csv
Milestone1/results/add_csv_monitor.csv
+307
-313
Milestone1/unit_tests/monitor.py
Milestone1/unit_tests/monitor.py
+1
-1
No files found.
Milestone1/results/add_csv.csv
View file @
bda7b748
This diff is collapsed.
Click to expand it.
Milestone1/results/add_csv_monitor.csv
View file @
bda7b748
This diff is collapsed.
Click to expand it.
Milestone1/unit_tests/monitor.py
View file @
bda7b748
...
...
@@ -17,6 +17,6 @@ client.connect(('localhost', 9040))
processes
=
list
(
map
(
lambda
pid
:
psutil
.
Process
(
int
(
pid
)),
pids
))
while
(
1
)
:
ram
=
sum
(
list
(
map
(
lambda
p
:
(
p
.
memory_info
().
rss
)
/
1024
/
1024
,
processes
)))
ram
=
max
(
list
(
map
(
lambda
p
:
(
p
.
memory_info
().
rss
)
/
1024
/
1024
,
processes
)))
client
.
send
(
str
(
ram
))
time
.
sleep
(
0.1
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment