Show the legend: different buckets values and colors meaning, so * that the spectrum is more easily readable. */
| 6955 | /* Show the legend: different buckets values and colors meaning, so |
| 6956 | * that the spectrum is more easily readable. */ |
| 6957 | void 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 | |
| 6974 | static void latencyDistMode(void) { |
| 6975 | redisReply *reply; |
no test coverage detected