MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / write_diff

Function write_diff

tools/scripts/massif-diff.py:347–358  ·  view source on GitHub ↗
(filename, root, allocs, dedup)

Source from the content-addressed store, hash-verified

345
346
347def write_diff(filename, root, allocs, dedup):
348 out_filename = filename + ('.allocs' if allocs else '.frees')
349 print('Creating', out_filename)
350
351 root = Node(copy=root)
352 root.diff(allocs, dedup)
353 with open(out_filename, 'w') as out_file:
354 root.print(out_file)
355
356 del root
357
358 return out_filename
359
360
361if __name__ == '__main__':

Callers 1

massif-diff.pyFile · 0.85

Calls 5

diffMethod · 0.95
printMethod · 0.95
openFunction · 0.85
NodeClass · 0.70
printFunction · 0.50

Tested by

no test coverage detected