Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
uyegy
CPUnetPLOT
Commits
d3a66a1d
Commit
d3a66a1d
authored
Aug 12, 2014
by
Mario Hock
Browse files
show "Comment"
parent
c6eeefb6
Changes
2
Hide whitespace changes
Inline
Side-by-side
cnl_library.py
View file @
d3a66a1d
...
...
@@ -179,6 +179,9 @@ class CNLParser:
def
get_type
(
self
):
return
self
.
header
[
"General"
][
"Type"
]
def
get_comment
(
self
):
return
self
.
header
[
"General"
][
"Comment"
]
def
get_cpus
(
self
):
return
self
.
header
[
"ClassDefinitions"
][
"CPU"
][
"Siblings"
]
...
...
simple_plotter.py
View file @
d3a66a1d
...
...
@@ -32,6 +32,7 @@ if __name__ == "__main__":
## Display header informations.
print
(
cnl_file
.
get_type
()
)
print
(
cnl_file
.
get_comment
()
)
print
(
"CPUs: "
+
str
(
cnl_file
.
get_cpus
())
)
print
(
"NICs: "
+
str
(
cnl_file
.
get_nics
())
)
...
...
@@ -64,6 +65,11 @@ if __name__ == "__main__":
fig
,
axes
=
plt
.
subplots
(
2
,
1
,
sharex
=
True
)
(
ax1
,
ax2
)
=
axes
#plt.title( cnl_file.get_comment() )
plt
.
figtext
(
0.01
,
0.02
,
"Comment: "
+
cnl_file
.
get_comment
())
#plt.figtext(0.01, 0.99, "Hallo ;-)")
plt
.
ylim
(
0
,
10
**
10
)
ax1
.
set_ylabel
(
'Throughput (Bit/s)'
)
...
...
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