~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/trace.py

  • Committer: Karl Bielefeldt
  • Date: 2010-10-02 06:52:46 UTC
  • mto: (5483.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 5484.
  • Revision ID: 7mq3cbbd9q@snkmail.com-20101002065246-yzbag1juwm0wlpmt
Use dump_gc_objects to save memory during dump since we are already low

Show diffs side-by-side

added added

removed removed

Lines of Context:
475
475
        fd, name = tempfile.mkstemp(prefix="bzr_memdump", suffix=".json")
476
476
        dump_file = os.fdopen(fd, 'w')
477
477
        from meliae import scanner
478
 
        scanner.dump_all_objects(dump_file)
 
478
        scanner.dump_gc_objects(dump_file)
479
479
        err_file.write("Memory dumped to %s\n" % name)
480
480
    except ImportError:
481
481
        err_file.write("Dumping memory requires meliae module.\n")