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

Function showLatencyDistLegend

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

Show the legend: different buckets values and colors meaning, so * that the spectrum is more easily readable. */

Source from the content-addressed store, hash-verified

6955/* Show the legend: different buckets values and colors meaning, so
6956 * that the spectrum is more easily readable. */
6957void showLatencyDistLegend(void) {
6958 int j;
6959
6960 printf("---------------------------------------------\n");
6961 printf(". - * # .01 .125 .25 .5 milliseconds\n");
6962 printf("1,2,3,...,9 from 1 to 9 milliseconds\n");
6963 printf("A,B,C,D,E 10,20,30,40,50 milliseconds\n");
6964 printf("F,G,H,I,J .1,.2,.3,.4,.5 seconds\n");
6965 printf("K,L,M,N,O,P,Q,? 1,2,4,8,16,30,60,>60 seconds\n");
6966 printf("From 0 to 100%%: ");
6967 for (j = 0; j < spectrum_palette_size; j++) {
6968 printf("\033[48;5;%dm ", spectrum_palette[j]);
6969 }
6970 printf("\033[0m\n");
6971 printf("---------------------------------------------\n");
6972}
6973
6974static void latencyDistMode(void) {
6975 redisReply *reply;

Callers 1

latencyDistModeFunction · 0.85

Calls 1

printfFunction · 0.50

Tested by

no test coverage detected