MCPcopy
hub / github.com/prometheus/prometheus / Close

Method Close

promql/engine.go:148–148  ·  view source on GitHub ↗

Close recovers memory used by the query result.

()

Source from the content-addressed store, hash-verified

146 Exec(ctx context.Context) *Result
147 // Close recovers memory used by the query result.
148 Close()
149 // Statement returns the parsed statement of the query.
150 Statement() parser.Statement
151 // Stats returns statistics about the lifetime of the query.

Callers 15

readTestdataFileFunction · 0.65
ReadLabelsFunction · 0.65
runTestStepsFunction · 0.65
verifyScrapeIntervalFunction · 0.65
verifyConfigReloadMetricFunction · 0.65
commandWithLoggingFunction · 0.65
skipMethod · 0.65
waitForPrometheusMethod · 0.65
queryMethod · 0.65
runMethod · 0.65
readQueryLogFunction · 0.65
fetchLTSReleasesFunction · 0.65

Implementers 3

closeCountingQueryrules/manager_test.go
querypromql/engine.go
fakeQueryweb/api/v1/api_test.go

Calls

no outgoing calls

Tested by 15

readTestdataFileFunction · 0.52
runTestStepsFunction · 0.52
verifyScrapeIntervalFunction · 0.52
verifyConfigReloadMetricFunction · 0.52
commandWithLoggingFunction · 0.52
skipMethod · 0.52
waitForPrometheusMethod · 0.52
queryMethod · 0.52
runMethod · 0.52
readQueryLogFunction · 0.52
fetchLTSReleasesFunction · 0.52
getPrometheusMetricValueFunction · 0.52