functionCallCounts: Report calls answered by the memoization cache

Add the cachedFunctionCalls metadata key with the number of calls in a
request which the memoization cache answered. Report it when it is
above zero. Add cachedFunctionCallPairCounts with the caller → called
pairs of these calls, limited by maxReportedFunctionCallCounts.

The count is of cache hits. Each hit also skips the sub-calls of the
first run, and these are not counted.

Assisted-by: Claude Opus 5.5
Bug: T440244

Merge request reports

Loading