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
3f60f0e4
Commit
3f60f0e4
authored
Feb 11, 2020
by
Alexandra Rogova
Committed by
Alexandra Rogova
Feb 27, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
results for random paragraphs
parent
76b941c3
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
2990 additions
and
3428 deletions
+2990
-3428
Milestone1/results/add_csv.csv
Milestone1/results/add_csv.csv
+256
-256
Milestone1/results/add_csv_monitor.csv
Milestone1/results/add_csv_monitor.csv
+717
-1111
Milestone1/results/add_random_csv.csv
Milestone1/results/add_random_csv.csv
+256
-256
Milestone1/results/add_random_csv_monitor.csv
Milestone1/results/add_random_csv_monitor.csv
+1748
-1790
Milestone1/unit_tests/monitor.js
Milestone1/unit_tests/monitor.js
+13
-15
No files found.
Milestone1/results/add_csv.csv
View file @
3f60f0e4
This diff is collapsed.
Click to expand it.
Milestone1/results/add_csv_monitor.csv
View file @
3f60f0e4
This diff is collapsed.
Click to expand it.
Milestone1/results/add_random_csv.csv
View file @
3f60f0e4
This diff is collapsed.
Click to expand it.
Milestone1/results/add_random_csv_monitor.csv
View file @
3f60f0e4
This diff is collapsed.
Click to expand it.
Milestone1/unit_tests/monitor.js
View file @
3f60f0e4
...
@@ -3,17 +3,13 @@ const fs = require("fs");
...
@@ -3,17 +3,13 @@ const fs = require("fs");
var
diskspace
=
require
(
"
diskspace
"
);
var
diskspace
=
require
(
"
diskspace
"
);
const
args
=
require
(
"
yargs
"
).
argv
;
const
args
=
require
(
"
yargs
"
).
argv
;
var
total_ram
=
os
.
totalmem
();
var
start_ram
=
total_ram
-
os
.
freemem
();
var
start_disk
;
console
.
log
(
args
);
var
path
=
args
.
r
var
path
=
args
.
r
?
"
./results/add_random_csv_monitor.csv
"
?
"
./results/add_random_csv_monitor.csv
"
:
"
./results/add_csv_monitor.csv
"
;
:
"
./results/add_csv_monitor.csv
"
;
console
.
log
(
path
);
var
stream
=
fs
.
createWriteStream
(
path
,
{
flags
:
"
w+
"
});
var
stream
=
fs
.
createWriteStream
(
path
,
{
flags
:
"
w+
"
});
stream
.
write
(
"
time,disk,ram
\n
"
);
stream
.
write
(
"
time,ram,disk
\n
"
);
//var start_disk;
// function init_server (){
// function init_server (){
// var port = 9030;
// var port = 9030;
...
@@ -31,8 +27,9 @@ stream.write("time,disk,ram\n");
...
@@ -31,8 +27,9 @@ stream.write("time,disk,ram\n");
var
check
=
function
(){
var
check
=
function
(){
setTimeout
(
function
()
{
setTimeout
(
function
()
{
diskspace
.
check
(
"
C
"
,
function
(
err
,
result
){
diskspace
.
check
(
"
C
"
,
function
(
err
,
result
){
var
disk_used
=
parseInt
(
result
.
used
)
-
parseInt
(
start_disk
);
//var disk_used = parseInt(result.used) - parseInt(start_disk);
var
ram_used
=
total_ram
-
os
.
freemem
();
var
disk_used
=
result
.
used
;
var
ram_used
=
os
.
totalmem
()
-
os
.
freemem
();
stream
.
write
(
Date
.
now
()
+
"
,
"
+
ram_used
+
"
,
"
+
disk_used
+
"
\n
"
);
stream
.
write
(
Date
.
now
()
+
"
,
"
+
ram_used
+
"
,
"
+
disk_used
+
"
\n
"
);
check
();
check
();
});
});
...
@@ -40,7 +37,8 @@ var check = function(){
...
@@ -40,7 +37,8 @@ var check = function(){
}
}
//init_server();
//init_server();
diskspace
.
check
(
"
C
"
,
function
(
err
,
result
){
// diskspace.check("C", function (err, result){
start_disk
=
parseInt
(
result
.
used
);
// start_disk = result.used;
check
();
// check();
});
// });
\ No newline at end of file
check
();
\ No newline at end of file
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