Changeset dbae916 for doc/theses


Ignore:
Timestamp:
Mar 14, 2023, 4:21:05 PM (22 months ago)
Author:
caparsons <caparson@…>
Branches:
ADT, ast-experimental, master
Children:
1afd9ccb, 360bfe41, 6e6989c
Parents:
5217569 (diff), c19ca4b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

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

    r5217569 rdbae916  
    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
     
    162171                    plt.xticks(procs)
    163172                    ax.legend(names)
    164                     # fig.savefig("plots/" + name + ".png")
     173                    # fig.savefig("plots/" + machineName + name + ".png")
    165174                    plt.savefig("plots/" + machineName + name + ".pgf")
    166175                    fig.clf()
Note: See TracChangeset for help on using the changeset viewer.