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

Improve handling sessino stats file

This commit is contained in:
SpyCheese 2024-12-27 13:00:00 +03:00
parent e6984e4799
commit ca1093d9ba
2 changed files with 63 additions and 73 deletions

View file

@ -793,6 +793,14 @@ class ValidatorManagerImpl : public ValidatorManager {
std::map<BlockSeqno, td::Ref<PersistentStateDescription>> persistent_state_descriptions_;
std::map<BlockIdExt, td::Ref<PersistentStateDescription>> persistent_state_blocks_;
bool session_stats_enabled_ = false;
std::string session_stats_filename_;
td::FileFd session_stats_fd_;
void init_session_stats();
template<typename T>
void write_session_stats(const T &obj);
};
} // namespace validator