detkit.Profile.disk_write#
- Profile.disk_write()#
Inquiry the amount of write to disk.
- Returns:
- write_sizeint
The amount of write to disk in bytes.
See also
Notes
The write amount is measured from the point where
detkit.Profile.set()
is called to the current.Examples
>>> from detkit import Profile, memdet >>> # Initialize with MB unit >>> prof = Profile() >>> # Set (or reset) the starting point of inquiry >>> prof.set() >>> # Perform an operation that reads from and writes to disk >>> import numpy >>> A = numpy.random.randn(1000, 1000) >>> ld = memdet(A, num_blocks=4) >>> # Inquiry write to disk during the above operation, in MB unit >>> print(prof.disk_write()) 10776576.0