Changeset c74372f


Ignore:
Timestamp:
Mar 9, 2023, 2:16:12 PM (21 months ago)
Author:
caparson <caparson@…>
Branches:
ADT, ast-experimental, master
Children:
a29477f
Parents:
52be2664
Message:

added plotting script support for memory footprint bench

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/theses/colby_parsons_MMAth/benchmarks/actors/plotData.py

    r52be2664 rc74372f  
    5353    Static = 7
    5454    Dynamic = 8
     55    Mem = 9
    5556
    5657nameSet = False
     
    9091            name = "Dynamic"
    9192            currBench = Bench.Dynamic
     93        elif line == "mem":
     94            name = "ExecutorMemory"
     95            currBench = Bench.Mem
    9296        else:
    9397            print("Expected benchmark name")
     
    98102        continue
    99103
    100     if currBench == Bench.Static or currBench == Bench.Dynamic:
     104    if currBench == Bench.Static or currBench == Bench.Dynamic or currBench == Bench.Mem:
    101105        if not nameSet:
    102106            nameSet = True
     
    116120                if currBench == Bench.Static:
    117121                    fileName += "SendStatic"
     122                elif currBench == Bench.Dynamic:
     123                    fileName += "SendDynamic"
    118124                else:
    119                     fileName += "SendDynamic"
     125                    fileName += "ExecutorMem"
    120126                f = open(fileName, 'w')
    121                 f.write(" & ".join(map(lambda a: str(int(a)) + 'ns', sendData)))
     127                if currBench == Bench.Mem:
     128                    f.write(" & ".join(map(lambda a: str(int(a/1000)) + 'MB', sendData)))
     129                else:
     130                    f.write(" & ".join(map(lambda a: str(int(a)) + 'ns', sendData)))
    122131
    123132                # reset
     
    161170                        plt.ylim(0, None)
    162171                    ax.legend(names)
    163                     # fig.savefig("plots/" + name + ".png")
     172                    # fig.savefig("plots/" + machineName + name + ".png")
    164173                    plt.savefig("plots/" + machineName + name + ".pgf")
    165174                    fig.clf()
Note: See TracChangeset for help on using the changeset viewer.