mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-02 14:05:17 +02:00
Experiment with gc
This commit is contained in:
parent
b16465c620
commit
f525ec57d6
1 changed files with 5 additions and 2 deletions
|
|
@ -730,7 +730,6 @@ def copyResources(self):
|
|||
shutil.copy(os.path.join(catalog_resources,file[1]),
|
||||
os.path.join(self.catalogPath, file[0]))
|
||||
|
||||
|
||||
def fetchBooksByTitle(self):
|
||||
|
||||
if self.verbose:
|
||||
|
|
@ -2542,11 +2541,14 @@ def updateProgressMicroStep(self, description, micro_step_pct):
|
|||
return "%.2f%% %s" % (self.progressInt, self.progressString)
|
||||
|
||||
def run(self, path_to_output, opts, db, notification=DummyReporter()):
|
||||
import gc
|
||||
from calibre.utils.logging import Log
|
||||
self.opts = opts
|
||||
|
||||
gc.set_debug(gc.DEBUG_LEAK)
|
||||
|
||||
log = Log()
|
||||
opts.fmt = self.fmt = path_to_output.rpartition('.')[2]
|
||||
self.opts = opts
|
||||
|
||||
# Add local options
|
||||
opts.creator = "calibre"
|
||||
|
|
@ -2592,3 +2594,4 @@ def run(self, path_to_output, opts, db, notification=DummyReporter()):
|
|||
|
||||
plumber.run()
|
||||
|
||||
print gc.garbage
|
||||
|
|
|
|||
Loading…
Reference in a new issue