Also plot relative overheads
authorGustavo J. A. M. Carneiro <gjc@inescporto.pt>
Wed May 13 18:26:57 2009 +0100 (9 months ago)
changeset 39843bf1e5377c98
parent 3983 6720e694786a
child 3985 4d15f24f643f
Also plot relative overheads
utils/flowmon/plot.py
     1.1 --- a/utils/flowmon/plot.py	Wed May 13 14:39:49 2009 +0100
     1.2 +++ b/utils/flowmon/plot.py	Wed May 13 18:26:57 2009 +0100
     1.3 @@ -156,5 +156,27 @@
     1.4  
     1.5      pylab.show()
     1.6  
     1.7 +
     1.8 +
     1.9 +
    1.10 +    pylab.subplot(211)
    1.11 +    pylab.xlabel("Number of Nodes")
    1.12 +    pylab.ylabel("Max. Memory (VSS) (overhead %)")
    1.13 +
    1.14 +    pylab.plot(
    1.15 +        num_nodes_list,
    1.16 +        [100*(mon.mean / nomon.mean - 1) for nomon, mon in zip(memory_no_monitor, memory_monitor)])
    1.17 +
    1.18 +
    1.19 +    pylab.subplot(212)
    1.20 +    pylab.xlabel("Number of Nodes")
    1.21 +    pylab.ylabel("Time (overhead %)")
    1.22 +
    1.23 +    pylab.plot(
    1.24 +        num_nodes_list,
    1.25 +        [100*(mon.mean / nomon.mean - 1) for nomon, mon in zip(cpu_time_no_monitor, cpu_time_monitor)])
    1.26 +
    1.27 +    pylab.show()
    1.28 +
    1.29  if __name__ == '__main__':
    1.30      main()