MCPcopy
hub / github.com/borgbackup/borg / sig_info_handler

Method sig_info_handler

src/borg/fuse.py:490–514  ·  view source on GitHub ↗
(self, sig_no, stack)

Source from the content-addressed store, hash-verified

488 self._last_pos = LRUCache(capacity=FILES)
489
490 def sig_info_handler(self, sig_no, stack):
491 logger.debug(
492 "fuse: %d synth inodes, %d edges (%s)",
493 self.inode_count,
494 len(self.parent),
495 # getsizeof is the size of the dict itself; key and value are two small-ish integers,
496 # which are shared due to code structure (this has been verified).
497 format_file_size(sys.getsizeof(self.parent) + len(self.parent) * sys.getsizeof(self.inode_count)),
498 )
499 logger.debug("fuse: %d pending archives", len(self.pending_archives))
500 logger.debug(
501 "fuse: ItemCache %d entries (%d direct, %d indirect), meta-array size %s, direct items size %s",
502 self.cache.direct_items + self.cache.indirect_items,
503 self.cache.direct_items,
504 self.cache.indirect_items,
505 format_file_size(sys.getsizeof(self.cache.meta)),
506 format_file_size(os.stat(self.cache.fd.fileno()).st_size),
507 )
508 logger.debug(
509 "fuse: data cache: %d/%d entries, %s",
510 len(self.data_cache.items()),
511 self.data_cache._capacity,
512 format_file_size(sum(len(chunk) for key, chunk in self.data_cache.items())),
513 )
514 self.decrypted_repository.log_instrumentation()
515
516 def mount(self, mountpoint, mount_options, foreground=False, show_rc=False):
517 """Mount filesystem on *mountpoint* with *mount_options*."""

Callers

nothing calls this directly

Calls 5

format_file_sizeFunction · 0.85
debugMethod · 0.80
filenoMethod · 0.80
itemsMethod · 0.45
log_instrumentationMethod · 0.45

Tested by

no test coverage detected