mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
getactorstats query for validator-engine-console
This commit is contained in:
parent
e55c132178
commit
420029b056
39 changed files with 1223 additions and 51 deletions
|
@ -21,6 +21,7 @@
|
|||
#include "common/refcnt.hpp"
|
||||
#include "interfaces/validator-manager.h"
|
||||
#include "interfaces/db.h"
|
||||
#include "td/actor/ActorStats.h"
|
||||
#include "td/actor/PromiseFuture.h"
|
||||
#include "td/utils/SharedSlice.h"
|
||||
#include "td/utils/buffer.h"
|
||||
|
@ -582,6 +583,8 @@ class ValidatorManagerImpl : public ValidatorManager {
|
|||
|
||||
void prepare_stats(td::Promise<std::vector<std::pair<std::string, std::string>>> promise) override;
|
||||
|
||||
void prepare_actor_stats(td::Promise<std::string> promise) override;
|
||||
|
||||
void prepare_perf_timer_stats(td::Promise<std::vector<PerfTimerStats>> promise) override;
|
||||
void add_perf_timer_stat(std::string name, double duration) override;
|
||||
|
||||
|
@ -678,6 +681,7 @@ class ValidatorManagerImpl : public ValidatorManager {
|
|||
private:
|
||||
std::unique_ptr<Callback> callback_;
|
||||
td::actor::ActorOwn<Db> db_;
|
||||
td::actor::ActorOwn<td::actor::ActorStats> actor_stats_;
|
||||
|
||||
bool started_ = false;
|
||||
bool allow_validate_ = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue