mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
3ade7e7e33
commit
f236428696
@ -5,6 +5,14 @@ __license__ = 'GPL v3'
|
|||||||
__copyright__ = '2010, Kovid Goyal <kovid@kovidgoyal.net>'
|
__copyright__ = '2010, Kovid Goyal <kovid@kovidgoyal.net>'
|
||||||
__docformat__ = 'restructuredtext en'
|
__docformat__ = 'restructuredtext en'
|
||||||
|
|
||||||
|
'''
|
||||||
|
Measure memory usage of the current process.
|
||||||
|
|
||||||
|
The key function is memory() which returns the current memory usage in bytes.
|
||||||
|
You can pass a number to memory and it will be subtracted from the returned
|
||||||
|
value.
|
||||||
|
'''
|
||||||
|
|
||||||
import gc, os
|
import gc, os
|
||||||
|
|
||||||
from calibre.constants import iswindows, islinux
|
from calibre.constants import iswindows, islinux
|
||||||
|
Loading…
x
Reference in New Issue
Block a user