Skip to content

Generic memory usage integration test harness for Gemini CLI #24871

@jacob314

Description

@jacob314

Should let us run memory usage tests that fail if memory usage exceeds a certain amount. Should also query the V8 API to get an actual heap snapshot to get V8's true memory usage as well as force GCs in V8 to attempt to reduce noise. Even with all the techniques expect memory usage #s to have some noise so will need to make sure the tests don't fail because of a little spike. Also expect standard behavior is memory usage will creep up slowly over time so should not panic as long as it is within X % of a baseline. Periodically we will need to update the baseline expected memory usage for the scenarios.

We need to be able to graph memory usage over time in some rudamentary way to be able to see the trend. Would suggest checking existing prior art. There are likely node libraries for this.

Metadata

Metadata

Assignees

Labels

area/platformIssues related to Build infra, Release mgmt, Testing, Eval infra, Capacity, Quota mgmtstatus/need-triageIssues that need to be triaged by the triage automation.

Type

No fields configured for Task.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions