Skip to content

Conversation

@cjreynol
Copy link
Collaborator

Sets up the necessary structure for gathering more flags, and gathers some initial fields. Will be expanded in future PRs.

Bug: 476236433
Bug: 463432559

@cjreynol cjreynol self-assigned this Jan 22, 2026
@cjreynol cjreynol force-pushed the initial_metrics_flags branch 2 times, most recently from f6024da to 5faef0e Compare January 22, 2026 04:59
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
@cjreynol cjreynol force-pushed the initial_metrics_flags branch from 5faef0e to 7ed65fe Compare January 22, 2026 05:00
@cjreynol cjreynol added kokoro:force-run Trigger a presubmit build unconditionally. kokoro:run Run e2e tests. labels Jan 22, 2026
@GoogleCuttlefishTesterBot GoogleCuttlefishTesterBot removed kokoro:run Run e2e tests. kokoro:force-run Trigger a presubmit build unconditionally. labels Jan 22, 2026
@cjreynol cjreynol marked this pull request as ready for review January 22, 2026 18:55
@cjreynol cjreynol requested a review from Databean January 22, 2026 18:56
@cjreynol cjreynol enabled auto-merge January 22, 2026 18:56
bool daemon;
};

Result<std::vector<FlagMetrics>> GetFlagMetrics(const int guest_count);
Copy link
Member

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);
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants