Commit d3a66a1d authored by Mario Hock's avatar Mario Hock
Browse files

show "Comment"

parent c6eeefb6
......@@ -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"]
......
......@@ -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)')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment