Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
HDL
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RTSD
HDL
Commits
4d2587a9
Commit
4d2587a9
authored
9 years ago
by
Reinier van der Walle
Browse files
Options
Downloads
Patches
Plain Diff
No commit message
No commit message
parent
580aac62
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
tools/oneclick/gui/monitoring/client_unb_data_logger.py
+1
-1
1 addition, 1 deletion
tools/oneclick/gui/monitoring/client_unb_data_logger.py
tools/oneclick/gui/monitoring/server_unb_data_logger.py
+3
-1
3 additions, 1 deletion
tools/oneclick/gui/monitoring/server_unb_data_logger.py
with
4 additions
and
2 deletions
tools/oneclick/gui/monitoring/client_unb_data_logger.py
+
1
−
1
View file @
4d2587a9
...
@@ -50,7 +50,7 @@ class client_unb_data_logger:
...
@@ -50,7 +50,7 @@ class client_unb_data_logger:
break
break
data_dict
=
pickle
.
loads
(
data
)
data_dict
=
pickle
.
loads
(
data
)
print
data_dict
# Write dic to csv
# Write dic to csv
list_to_write
=
[]
list_to_write
=
[]
for
label
in
self
.
label_list
:
for
label
in
self
.
label_list
:
...
...
This diff is collapsed.
Click to expand it.
tools/oneclick/gui/monitoring/server_unb_data_logger.py
+
3
−
1
View file @
4d2587a9
...
@@ -4,6 +4,7 @@ import cPickle as pickle
...
@@ -4,6 +4,7 @@ import cPickle as pickle
import
time
import
time
from
commands
import
getstatusoutput
from
commands
import
getstatusoutput
import
read_datarates
import
read_datarates
from
decimal
import
*
##let's set up some constants
##let's set up some constants
HOST
=
''
#we are the host
HOST
=
''
#we are the host
PORT
=
44330
#arbitrary port not currently in use
PORT
=
44330
#arbitrary port not currently in use
...
@@ -31,9 +32,10 @@ def calc_datarates_Gbps(exec_time):
...
@@ -31,9 +32,10 @@ def calc_datarates_Gbps(exec_time):
t0
=
time
.
time
()
t0
=
time
.
time
()
datarates_dict
=
datarate
.
get_data_rates
()
datarates_dict
=
datarate
.
get_data_rates
()
devide_time
=
time
.
time
()
-
t0
+
exec_time
devide_time
=
time
.
time
()
-
t0
+
exec_time
getcontext
().
prec
=
9
for
key
in
datarates_dict
.
keys
():
for
key
in
datarates_dict
.
keys
():
try
:
try
:
datarates_dict
[
key
]
=
datarates_dict
[
key
]
/
float
(
devide_time
)
*
8
/
1000000000
datarates_dict
[
key
]
=
Decimal
(
datarates_dict
[
key
]
/
devide_time
*
8
/
1000000000
)
except
:
except
:
datarates_dict
[
key
]
=
None
datarates_dict
[
key
]
=
None
return
datarates_dict
return
datarates_dict
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment