def get_mem_size():
    if self.is_wasm():
        return self.count_wasm_contents('src.cpp.o.wasm', 'memory-data')
    if self.uses_memory_init_file():
        return os.path.getsize('src.cpp.o.js.mem')
    return 0
def get_mem_size():
    if self.is_wasm():
        return self.count_wasm_contents('src.cpp.o.wasm', 'memory-data')
    if self.uses_memory_init_file():
        return os.path.getsize('src.cpp.o.js.mem')
    return 0