-
Notifications
You must be signed in to change notification settings - Fork 184
Add initial flag metrics gathering #2043
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
base: main
Are you sure you want to change the base?
Conversation
f6024da to
5faef0e
Compare
This commit does not gather any data, but implements moving the data around. Bug: 476236433
Not yet converted for transmission, but `cpus` and `daemon` flag data are available at that stage. Bug: 476236433
Utilize the data gathered in the previous commit and populate the proto with it for transmission. Bug: 476236433
5faef0e to
7ed65fe
Compare
| bool daemon; | ||
| }; | ||
|
|
||
| Result<std::vector<FlagMetrics>> GetFlagMetrics(const int guest_count); |
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.
const isn't meaningful in this declaration the way it is in the function definition.
See https://abseil.io/tips/109
Please remove it here.
| bool daemon; | ||
| }; | ||
|
|
||
| Result<std::vector<FlagMetrics>> GetFlagMetrics(const int guest_count); |
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.
Please document that this function relies on gflags::ParseCommandLineFlags being called.
It's relatively more explicit in some of the names like FromGlobalGflags, but not as explicit here.
Sets up the necessary structure for gathering more flags, and gathers some initial fields. Will be expanded in future PRs.
Bug: 476236433
Bug: 463432559