MCPcopy Create free account
hub / github.com/F-Stack/f-stack / latencyModePrint

Function latencyModePrint

app/redis-6.2.6/src/redis-cli.c:6836–6846  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6834 *--------------------------------------------------------------------------- */
6835
6836static void latencyModePrint(long long min, long long max, double avg, long long count) {
6837 if (config.output == OUTPUT_STANDARD) {
6838 printf("min: %lld, max: %lld, avg: %.2f (%lld samples)",
6839 min, max, avg, count);
6840 fflush(stdout);
6841 } else if (config.output == OUTPUT_CSV) {
6842 printf("%lld,%lld,%.2f,%lld\n", min, max, avg, count);
6843 } else if (config.output == OUTPUT_RAW) {
6844 printf("%lld %lld %.2f %lld\n", min, max, avg, count);
6845 }
6846}
6847
6848#define LATENCY_SAMPLE_RATE 10 /* milliseconds. */
6849#define LATENCY_HISTORY_DEFAULT_INTERVAL 15000 /* milliseconds. */

Callers 1

latencyModeFunction · 0.85

Calls 1

printfFunction · 0.50

Tested by

no test coverage detected