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

A new "simple_plotter.py" file.

So far, just the demo code from the cnl_library is copied..
parent e7d4dd47
#!/usr/bin/env python3
# -*- coding:utf-8 -*-
import sys
import matplotlib
from cnl_library import CNLParser
## MAIN ##
if __name__ == "__main__":
### DEMO:
filename = sys.argv[1]
print( filename )
## * Parse input file. *
cnl_file = CNLParser(filename)
## Display header informations.
print( cnl_file.get_type() )
print( "CPUs: " + str(cnl_file.get_cpus()) )
print( "NICs: " + str(cnl_file.get_nics()) )
## Display some csv/data fields.
names = None
names = ["eth0.send", "eth0.receive"]
print( names )
for x in cnl_file.get_csv_iterator(names):
print( ", ".join(x) )
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