Stats
This commit is contained in:
parent
cf91806cc4
commit
1e15e8d952
2 changed files with 6 additions and 8 deletions
|
|
@ -140,6 +140,8 @@ enum class detail
|
||||||
empty,
|
empty,
|
||||||
done,
|
done,
|
||||||
retry,
|
retry,
|
||||||
|
prioritized,
|
||||||
|
pending,
|
||||||
|
|
||||||
// processing queue
|
// processing queue
|
||||||
queue,
|
queue,
|
||||||
|
|
@ -485,10 +487,6 @@ enum class detail
|
||||||
deprioritize,
|
deprioritize,
|
||||||
deprioritize_failed,
|
deprioritize_failed,
|
||||||
sync_dependencies,
|
sync_dependencies,
|
||||||
frontiers_processed,
|
|
||||||
frontiers_prioritized,
|
|
||||||
frontiers_outdated,
|
|
||||||
frontiers_pending,
|
|
||||||
|
|
||||||
request_blocks,
|
request_blocks,
|
||||||
request_account_info,
|
request_account_info,
|
||||||
|
|
|
||||||
|
|
@ -975,10 +975,10 @@ void nano::bootstrap_ascending::service::process_frontiers (std::deque<std::pair
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stats.add (nano::stat::type::bootstrap_ascending, nano::stat::detail::frontiers_processed, frontiers.size ());
|
stats.add (nano::stat::type::bootstrap_ascending_frontiers, nano::stat::detail::processed, frontiers.size ());
|
||||||
stats.add (nano::stat::type::bootstrap_ascending, nano::stat::detail::frontiers_prioritized, result.size ());
|
stats.add (nano::stat::type::bootstrap_ascending_frontiers, nano::stat::detail::prioritized, result.size ());
|
||||||
stats.add (nano::stat::type::bootstrap_ascending, nano::stat::detail::frontiers_outdated, outdated);
|
stats.add (nano::stat::type::bootstrap_ascending_frontiers, nano::stat::detail::outdated, outdated);
|
||||||
stats.add (nano::stat::type::bootstrap_ascending, nano::stat::detail::frontiers_pending, pending);
|
stats.add (nano::stat::type::bootstrap_ascending_frontiers, nano::stat::detail::pending, pending);
|
||||||
|
|
||||||
nano::lock_guard<nano::mutex> guard{ mutex };
|
nano::lock_guard<nano::mutex> guard{ mutex };
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue