1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-03-09 15:40:10 +00:00

Collect statistics for .pack files (#944)

* Statistics for .pack files

* optimizations

* fix typo

* fix erasing packages
This commit is contained in:
Marat 2024-03-27 12:23:11 +01:00 committed by GitHub
parent b07614335c
commit 10487b1c71
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 155 additions and 18 deletions

View file

@ -174,7 +174,7 @@ class ArchiveManager : public td::actor::Actor {
bool huge_transaction_started_ = false;
td::uint32 huge_transaction_size_ = 0;
std::shared_ptr<rocksdb::Statistics> statistics_;
DbStatistics statistics_;
FileMap &get_file_map(const PackageId &p) {
return p.key ? key_files_ : p.temp ? temp_files_ : files_;