Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
X-Lap
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
LARN
X-Lap
Commits
ccba7c21
Commit
ccba7c21
authored
Oct 10, 2018
by
Stefan Reif
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...
parent
6674aef1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
xlap/analyse/e2e.py
xlap/analyse/e2e.py
+2
-1
xlap/command_line.py
xlap/command_line.py
+2
-2
No files found.
xlap/analyse/e2e.py
View file @
ccba7c21
...
...
@@ -41,9 +41,10 @@ def _plot_regions(dataset):
correlations
=
list
(
map
(
lambda
x
:
x
[
'Slowdown'
],
relevant
))
ticks
=
list
(
map
(
lambda
x
:
"<%s,%s>"
%
(
x
[
'Start'
][:
-
2
],
x
[
'End'
][:
-
2
]),
relevant
))
fig
,
ax
=
plt
.
subplots
()
rects
=
ax
.
barh
(
x
,
correlations
,
align
=
"center"
,
tick_label
=
""
)
rects
=
ax
.
barh
(
x
,
correlations
,
align
=
"center"
,
tick_label
=
""
,
color
=
'#3babaf'
)
autolabel
(
rects
,
ax
,
ticks
)
plt
.
xlabel
(
'Normalized slowdown'
)
plt
.
tight_layout
()
plt
.
savefig
(
"normalized-slowdown.pdf"
)
plt
.
close
()
...
...
xlap/command_line.py
View file @
ccba7c21
...
...
@@ -48,7 +48,7 @@ def main():
elif
command
==
"e2e"
:
khz1
=
2000000
khz2
=
3000000
path
=
"../publications/
nsdi
-18/eval/20180419_energy/"
path
=
"../publications/
rtn
-18/eval/20180419_energy/"
df_data1
=
evaluate
(
path
+
"sender-"
+
str
(
khz1
)
+
".csv"
,
path
+
"receiver-"
+
str
(
khz1
)
+
".csv"
,
config
=
config
,
kind
=
0
)
df_data2
=
evaluate
(
path
+
"sender-"
+
str
(
khz2
)
+
".csv"
,
path
+
"receiver-"
+
str
(
khz2
)
+
".csv"
,
config
=
config
,
kind
=
0
)
e2e
.
analyse
(
df_data1
,
df_data2
,
config
)
...
...
@@ -57,7 +57,7 @@ def main():
a
=
latency
.
analyse
(
df_data
,
config
)
print
(
a
.
corr
.
sort_values
(
ascending
=
False
))
elif
command
==
"difference"
:
path
=
"../publications/
nsdi
-18/eval/20180420_"
path
=
"../publications/
rtn
-18/eval/20180420_"
khz
=
3000000
df_data1
=
evaluate
(
path
+
"base1/sender-"
+
str
(
khz
)
+
".csv"
,
path
+
"base1/receiver-"
+
str
(
khz
)
+
".csv"
,
config
=
config
,
kind
=
0
)
# sanity check:
...
...
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