浏览代码

New OSTEP 0.92 Version

Michael Mächtel 8 年前
父节点
当前提交
7e35a777b4
共有 1 个文件被更改,包括 15 次插入0 次删除
  1. 15
    0
      hw3/simu3/malloc.py

+ 15
- 0
hw3/simu3/malloc.py 查看文件

@@ -154,6 +154,21 @@ parser.add_option('-c', '--compute',     default=False,      help='compute answe
154 154
 m = malloc(int(options.heapSize), int(options.baseAddr), int(options.headerSize),
155 155
            options.policy, options.order, options.coalesce, options.alignment)
156 156
 
157
+print 'seed', options.seed
158
+print 'size', options.heapSize
159
+print 'baseAddr', options.baseAddr
160
+print 'headerSize', options.headerSize
161
+print 'alignment', options.alignment
162
+print 'policy', options.policy
163
+print 'listOrder', options.order
164
+print 'coalesce', options.coalesce
165
+print 'numOps', options.opsNum
166
+print 'range', options.opsRange
167
+print 'percentAlloc', options.opsPAlloc
168
+print 'allocList', options.opsList
169
+print 'compute', options.solve
170
+print ''
171
+
157 172
 percent = int(options.opsPAlloc) / 100.0
158 173
 
159 174
 random.seed(int(options.seed))

正在加载...
取消
保存