Browse Source

New OSTEP 0.92 Version

Michael Mächtel 8 years ago
parent
commit
7e35a777b4
1 changed files with 15 additions and 0 deletions
  1. 15
    0
      hw3/simu3/malloc.py

+ 15
- 0
hw3/simu3/malloc.py View File

@@ -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))

Loading…
Cancel
Save