Add min, max and total request time to top api command #4702
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Community Contribution License
All community contributions in this pull request are licensed to the project maintainers
under the terms of the [Apache 2 license] (https://www.apache.org/licenses/LICENSE-2.0).
By creating this pull request I represent that I have the right to license the
contributions to the project maintainers under the Apache 2 license.
Description
The min, max and total request time gives you a more complete picture of the API "perfomance"
in addition to the already existing avg request time.
Motivation and Context
The additional output helps to understand the latency of the incoming API calls even better.
In particular, how far the min and max RT differ from each other.
Other trace analysis tools like tshark also provide the min, max, avg and sum RT.
![grafik](https://private-user-images.githubusercontent.com/1389655/271534143-c436e20a-1550-4ce2-abf0-34be39c19d9c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE4NjE3MzMsIm5iZiI6MTcyMTg2MTQzMywicGF0aCI6Ii8xMzg5NjU1LzI3MTUzNDE0My1jNDM2ZTIwYS0xNTUwLTRjZTItYWJmMC0zNGJlMzljMTlkOWMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcyNCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MjRUMjI1MDMzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9Y2VmZGZlNDZkYThhMWYwODY2YjY1ODEzYTc3M2MxY2I4ZDljYzdkM2I0NWZmMmQ0MmNhNTM0NWM2ZWQzZDJhMSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.PVUSwLyoO61oPbLacMWeiveeKqVURJfq7PwvOq6ZDeo)
How to test this PR?
Execute mc support top api TARGET and watch the output.
Types of changes
Checklist:
commit-id
orPR #
here)