Home | History | Annotate | Download | only in data

Lines Matching refs:Archive

12 Where an "archive" is essentially a collection of snapshots taken for a given
64 """Returns an instance of |Archive|."""
68 return Archive(archive_name, archive_path)
71 """Deletes the archive (removing its folder)."""
78 class Archive(object):
94 """Stores the symbol db (one per the overall archive)."""
96 file_path = os.path.join(self._path, Archive._SYM_FILE)
101 return os.path.exists(os.path.join(self._path, Archive._SYM_FILE))
105 file_path = os.path.join(self._path, Archive._SYM_FILE)
111 self._cur_snapshot = Archive._TimestampToStr(datetime.datetime.now())
113 self._cur_snapshot + Archive._SNAP_EXT)
116 return datetime.datetime.strptime(self._cur_snapshot, Archive._TIME_FMT)
121 [name[:-(len(Archive._SNAP_EXT))] for name in os.listdir(self._path)
122 if name.endswith(Archive._SNAP_EXT)])
123 timestamps = [datetime.datetime.strptime(x, Archive._TIME_FMT)
130 file_path = os.path.join(self._path, self._cur_snapshot + Archive._MMAP_EXT)
135 return self._HasSnapshotFile(timestamp, Archive._MMAP_EXT)
139 snapshot_name = Archive._TimestampToStr(timestamp)
140 file_path = os.path.join(self._path, snapshot_name + Archive._MMAP_EXT)
148 self._cur_snapshot + Archive._NHEAP_EXT)
153 return self._HasSnapshotFile(timestamp, Archive._NHEAP_EXT)
157 snapshot_name = Archive._TimestampToStr(timestamp)
158 file_path = os.path.join(self._path, snapshot_name + Archive._NHEAP_EXT)
163 name = Archive._TimestampToStr(timestamp)
168 return timestamp.strftime(Archive