Show the legend: different buckets values and colors meaning, so * that the spectrum is more easily readable. */
| 6045 | /* Show the legend: different buckets values and colors meaning, so |
| 6046 | * that the spectrum is more easily readable. */ |
| 6047 | void showLatencyDistLegend(void) { |
| 6048 | int j; |
| 6049 | |
| 6050 | printf("---------------------------------------------\n"); |
| 6051 | printf(". - * # .01 .125 .25 .5 milliseconds\n"); |
| 6052 | printf("1,2,3,...,9 from 1 to 9 milliseconds\n"); |
| 6053 | printf("A,B,C,D,E 10,20,30,40,50 milliseconds\n"); |
| 6054 | printf("F,G,H,I,J .1,.2,.3,.4,.5 seconds\n"); |
| 6055 | printf("K,L,M,N,O,P,Q,? 1,2,4,8,16,30,60,>60 seconds\n"); |
| 6056 | printf("From 0 to 100%%: "); |
| 6057 | for (j = 0; j < spectrum_palette_size; j++) { |
| 6058 | printf("\033[48;5;%dm ", spectrum_palette[j]); |
| 6059 | } |
| 6060 | printf("\033[0m\n"); |
| 6061 | printf("---------------------------------------------\n"); |
| 6062 | } |
| 6063 | |
| 6064 | static void latencyDistMode(void) { |
| 6065 | redisReply *reply; |