Explorar el Código

Fix RGB values for paje colors

Samuel Thibault hace 7 años
padre
commit
53f661b24e
Se han modificado 1 ficheros con 32 adiciones y 32 borrados
  1. 32 32
      src/debug/traces/starpu_fxt.c

+ 32 - 32
src/debug/traces/starpu_fxt.c

@@ -1349,75 +1349,75 @@ static void create_paje_state_if_not_found(char *name, struct starpu_fxt_options
 			char ctx[10];
 			snprintf(ctx, sizeof(ctx), "Ctx%d", i);
 			if(i%10 == 1)
-				create_paje_state_color(name, ctx, 255.0, 102.0, 255.0);
+				create_paje_state_color(name, ctx, 1.0, 0.39, 1.0);
 			if(i%10 == 2)
-				create_paje_state_color(name, ctx, .0, 255.0, 0.0);
+				create_paje_state_color(name, ctx, .0, 1.0, 0.0);
 			if(i%10 == 3)
-				create_paje_state_color(name, ctx, 255.0, 255.0, .0);
+				create_paje_state_color(name, ctx, 1.0, 1.0, .0);
 			if(i%10 == 4)
-				create_paje_state_color(name, ctx, .0, 245.0, 255.0);
+				create_paje_state_color(name, ctx, .0, 0.95, 1.0);
 			if(i%10 == 5)
 				create_paje_state_color(name, ctx, .0, .0, .0);
 			if(i%10 == 6)
-				create_paje_state_color(name, ctx, .0, .0, 128.0);
+				create_paje_state_color(name, ctx, .0, .0, 0.5);
 			if(i%10 == 7)
-				create_paje_state_color(name, ctx, 105.0, 105.0, 105.0);
+				create_paje_state_color(name, ctx, 0.41, 0.41, 0.41);
 			if(i%10 == 8)
-				create_paje_state_color(name, ctx, 255.0, .0, 255.0);
+				create_paje_state_color(name, ctx, 1.0, .0, 1.0);
 			if(i%10 == 9)
 				create_paje_state_color(name, ctx, .0, .0, 1.0);
 			if(i%10 == 0)
-				create_paje_state_color(name, ctx, 154.0, 205.0, 50.0);
+				create_paje_state_color(name, ctx, 0.6, 0.80, 50.0);
 
 		}
-/* 		create_paje_state_color(name, "Ctx1", 255.0, 102.0, 255.0); */
-/* 		create_paje_state_color(name, "Ctx2", .0, 255.0, 0.0); */
-/* 		create_paje_state_color(name, "Ctx3", 255.0, 255.0, .0); */
-/* 		create_paje_state_color(name, "Ctx4", .0, 245.0, 255.0); */
+/* 		create_paje_state_color(name, "Ctx1", 1.0, 0.39, 1.0); */
+/* 		create_paje_state_color(name, "Ctx2", .0, 1.0, 0.0); */
+/* 		create_paje_state_color(name, "Ctx3", 1.0, 1.0, .0); */
+/* 		create_paje_state_color(name, "Ctx4", .0, 0.95, 1.0); */
 /* 		create_paje_state_color(name, "Ctx5", .0, .0, .0); */
-/* 		create_paje_state_color(name, "Ctx6", .0, .0, 128.0); */
-/* 		create_paje_state_color(name, "Ctx7", 105.0, 105.0, 105.0); */
-/* 		create_paje_state_color(name, "Ctx8", 255.0, .0, 255.0); */
+/* 		create_paje_state_color(name, "Ctx6", .0, .0, 0.5); */
+/* 		create_paje_state_color(name, "Ctx7", 0.41, 0.41, 0.41); */
+/* 		create_paje_state_color(name, "Ctx8", 1.0, .0, 1.0); */
 /* 		create_paje_state_color(name, "Ctx9", .0, .0, 1.0); */
-/* 		create_paje_state_color(name, "Ctx10", 154.0, 205.0, 50.0); */
+/* 		create_paje_state_color(name, "Ctx10", 0.6, 0.80, 0.19); */
 #else
 		fprintf(out_paje_file, "6	%s	WS	%s	\"%f %f %f\" \n", name, name, red, green, blue);
 		int i;
 		for(i = 1; i < STARPU_NMAX_SCHED_CTXS; i++)
 		{
 			if(i%10 == 1)
-				fprintf(out_paje_file, "6	%s	Ctx%d	%s	\"255.0 102.0 255.0\" \n", name, i, name);
+				fprintf(out_paje_file, "6	%s	Ctx%d	%s	\"1.0 0.39 1.0\" \n", name, i, name);
 			if(i%10 == 2)
-				fprintf(out_paje_file, "6	%s	Ctx%d	%s	\".0 255.0 .0\" \n", name, i, name);
+				fprintf(out_paje_file, "6	%s	Ctx%d	%s	\".0 1.0 .0\" \n", name, i, name);
 			if(i%10 == 3)
-				fprintf(out_paje_file, "6	%s	Ctx%d	%s	\"225.0 225.0 .0\" \n", name, i, name);
+				fprintf(out_paje_file, "6	%s	Ctx%d	%s	\"0.87 0.87 .0\" \n", name, i, name);
 			if(i%10 == 4)
-				fprintf(out_paje_file, "6	%s	Ctx%d	%s	\".0 245.0 255.0\" \n", name, i, name);
+				fprintf(out_paje_file, "6	%s	Ctx%d	%s	\".0 0.95 1.0\" \n", name, i, name);
 			if(i%10 == 5)
 				fprintf(out_paje_file, "6	%s	Ctx%d	%s	\".0 .0 .0\" \n", name, i, name);
 			if(i%10 == 6)
-				fprintf(out_paje_file, "6	%s	Ctx%d	%s	\".0 .0 128.0\" \n", name, i, name);
+				fprintf(out_paje_file, "6	%s	Ctx%d	%s	\".0 .0 0.5\" \n", name, i, name);
 			if(i%10 == 7)
-				fprintf(out_paje_file, "6	%s	Ctx%d	%s	\"105.0 105.0 105.0\" \n", name, i, name);
+				fprintf(out_paje_file, "6	%s	Ctx%d	%s	\"0.41 0.41 0.41\" \n", name, i, name);
 			if(i%10 == 8)
-				fprintf(out_paje_file, "6	%s	Ctx%d	%s	\"255.0 .0 255.0\" \n", name, i, name);
+				fprintf(out_paje_file, "6	%s	Ctx%d	%s	\"1.0 .0 1.0\" \n", name, i, name);
 			if(i%10 == 9)
 				fprintf(out_paje_file, "6	%s	Ctx%d	%s	\".0 .0 1.0\" \n", name, i, name);
 			if(i%10 == 0)
-				fprintf(out_paje_file, "6	%s	Ctx%d	%s	\"154.0 205.0 50.0\" \n", name, i, name);
+				fprintf(out_paje_file, "6	%s	Ctx%d	%s	\"0.6 0.80 0.19\" \n", name, i, name);
 
 		}
 
-/* 		fprintf(out_paje_file, "6	%s	Ctx1	%s	\"255.0 102.0 255.0\" \n", name, name); */
-/* 		fprintf(out_paje_file, "6	%s	Ctx2	%s	\".0 255.0 .0\" \n", name, name); */
-/* 		fprintf(out_paje_file, "6	%s	Ctx3	%s	\"225.0 225.0 .0\" \n", name, name); */
-/* 		fprintf(out_paje_file, "6	%s	Ctx4	%s	\".0 245.0 255.0\" \n", name, name); */
+/* 		fprintf(out_paje_file, "6	%s	Ctx1	%s	\"1.0 0.39 1.0\" \n", name, name); */
+/* 		fprintf(out_paje_file, "6	%s	Ctx2	%s	\".0 1.0 .0\" \n", name, name); */
+/* 		fprintf(out_paje_file, "6	%s	Ctx3	%s	\"0.87 0.87 .0\" \n", name, name); */
+/* 		fprintf(out_paje_file, "6	%s	Ctx4	%s	\".0 0.95 1.0\" \n", name, name); */
 /* 		fprintf(out_paje_file, "6	%s	Ctx5	%s	\".0 .0 .0\" \n", name, name); */
-/* 		fprintf(out_paje_file, "6	%s	Ctx6	%s	\".0 .0 128.0\" \n", name, name); */
-/* 		fprintf(out_paje_file, "6	%s	Ctx7	%s	\"105.0 105.0 105.0\" \n", name, name); */
-/* 		fprintf(out_paje_file, "6	%s	Ctx8	%s	\"255.0 .0 255.0\" \n", name, name); */
+/* 		fprintf(out_paje_file, "6	%s	Ctx6	%s	\".0 .0 0.5\" \n", name, name); */
+/* 		fprintf(out_paje_file, "6	%s	Ctx7	%s	\"0.41 0.41 0.41\" \n", name, name); */
+/* 		fprintf(out_paje_file, "6	%s	Ctx8	%s	\"1.0 .0 1.0\" \n", name, name); */
 /* 		fprintf(out_paje_file, "6	%s	Ctx9	%s	\".0 .0 1.0\" \n", name, name); */
-/* 		fprintf(out_paje_file, "6	%s	Ctx10	%s	\"154.0 205.0 50.0\" \n", name, name); */
+/* 		fprintf(out_paje_file, "6	%s	Ctx10	%s	\"0.6 0.80 0.19\" \n", name, name); */
 #endif
 	}