-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Perf analysis based on tsc delta measurements #79
Conversation
dbdf8b9
to
0e7c4a0
Compare
f9ce230
to
e002438
Compare
cli/show.h
Outdated
dataplane.updateGlobalBase(globalbase); | ||
} | ||
|
||
static const std::map<std::string, unsigned int> counter_name_to_offset = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should i use array instead of struct for dataplane::perf::tsc_base_values, to avoid this?
common::idp::updateGlobalBase::request globalbase; | ||
globalbase.emplace_back(common::idp::updateGlobalBase::requestType::tscs_base_value_update, | ||
common::idp::updateGlobalBase::tscs_base_value_update::request{counter_name_to_offset.at(counter_name), value}); | ||
dataplane.updateGlobalBase(globalbase); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it ok to update GlobalBase from cli?
@@ -105,6 +109,7 @@ std::vector<std::tuple<std::string, | |||
{"dontdoit podumoi controlplane rib save", "", [](const auto& args) { call(rib::save, args); }}, | |||
{"dontdoit podumoi controlplane rib load", "", [](const auto& args) { call(rib::load, args); }}, | |||
{"dontdoit podumoi controlplane rib clear", "[protocol] <peer> <vrf> <priority>", [](const auto& args) { call(rib::clear, args); }}, | |||
{"dontdoit podumoi tsc monitoring", "", [](const auto& args) { call(develop::dataplane::tsc_monitoring, args); }}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe move to just "tsc monitoring" =)
b8199b3
to
81267bc
Compare
Squash and rebase to main, please |
#74