ETISS 0.8.0
Extendable Translating Instruction Set Simulator (version 0.8.0)
Classes | Namespaces | Functions | Variables
get_metrics.py File Reference

Go to the source code of this file.

Classes

class  get_metrics.MemRange
 

Namespaces

 get_metrics
 

Functions

def get_metrics.parseElf (inFile)
 
def get_metrics.printSz (sz, unknown_msg="")
 

Variables

int get_metrics.DEFAULT_RAM_START = 0x80000
 
int get_metrics.DEFAULT_RAM_SIZE = 0x80000
 
int get_metrics.DEFAULT_STACK_SIZE = 0x4000
 
 get_metrics.parser = argparse.ArgumentParser()
 
 get_metrics.metavar
 
 get_metrics.type
 
 get_metrics.str
 
 get_metrics.nargs
 
 get_metrics.help
 
 get_metrics.default
 
 get_metrics.args = parser.parse_args()
 
 get_metrics.elfFile = args.elf[0]
 
 get_metrics.traceFile = args.trace
 
 get_metrics.memIni = args.ini
 
 get_metrics.csvFile = args.out
 
int get_metrics.ramStart = DEFAULT_RAM_START
 
int get_metrics.ramSize = DEFAULT_RAM_SIZE
 
int get_metrics.stackSize = DEFAULT_STACK_SIZE
 
 get_metrics.config = configparser.ConfigParser()
 
 get_metrics.cfg = config["IntConfigurations"]
 
 get_metrics.staticSizes
 
 get_metrics.heapStart
 
 get_metrics.d = MemRange("Data", ramStart, heapStart)
 
 get_metrics.h = MemRange("Heap", heapStart, ramStart + ramSize - stackSize)
 
 get_metrics.s = MemRange("Stack", ramStart + ramSize - stackSize, ramStart + ramSize)
 
list get_metrics.mems = [d, h, s]
 
bool get_metrics.trace_available = False
 
 get_metrics.reader = csv.reader(f, skipinitialspace=True, delimiter=";")
 
 get_metrics.pc = int(r[1], 16)
 
 get_metrics.mode = r[2]
 
 get_metrics.adr = int(r[3], 16)
 
 get_metrics.sz = int(r[4], 16)
 
 get_metrics.romSize = sum([staticSizes[k] for k in staticSizes if k.startswith("rom_")])
 
dictionary get_metrics.results
 
 get_metrics.writer = csv.DictWriter(f, fieldnames=results.keys())