details:
- specify color randomly if no color is provided
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8988
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
- //declaring user categories
- TRACE_category("compute");
- TRACE_category("request");
- TRACE_category("data");
- TRACE_category("finalize");
+ //declaring user categories with RGB colors
+ TRACE_category_with_color ("compute", "1 0 0"); //red
+ TRACE_category_with_color ("request", "0 1 0"); //green
+ TRACE_category_with_color ("data", "0 0 1"); //blue
+ TRACE_category_with_color ("finalize", "0 0 0");//black
res = test_all(argv[1], argv[2]);
MSG_clean();
res = test_all(argv[1], argv[2]);
MSG_clean();
//declaring user markers
TRACE_declare_mark("msmark");
//declaring user markers
TRACE_declare_mark("msmark");
- //declaring user categories
- TRACE_category("compute");
- TRACE_category("finalize");
+ //declaring user categories with RGB colors (values from 0 to 1)
+ TRACE_category_with_color ("compute", "1 0 0"); //compute is red
+ TRACE_category_with_color ("finalize", "0 1 0"); //finalize is green
+ //categories without user-defined colors receive
+ //random colors generated by the tracing system
+ TRACE_category ("request");
+ TRACE_category_with_color ("report", NULL);
res = test_all(argv[1], argv[2]);
MSG_clean();
res = test_all(argv[1], argv[2]);
MSG_clean();
- TRACE_category("emigrant");
+ TRACE_category_with_color ("emigrant", "1 0 0");
/* Simulation setting */
MSG_create_environment(argv[1]);
/* Simulation setting */
MSG_create_environment(argv[1]);
}
//declaring user categories
}
//declaring user categories
- TRACE_category("compute");
- TRACE_category("finalize");
+ TRACE_category_with_color ("compute", "1 0 0"); //compute is red
+ TRACE_category_with_color ("finalize", "0 1 0"); //finalize is green
res = test_all(argv[1], argv[2]);
MSG_clean();
res = test_all(argv[1], argv[2]);
MSG_clean();
// - the tasks sent have a category
//declaring user categories (for tasks)
// - the tasks sent have a category
//declaring user categories (for tasks)
- TRACE_category("compute");
- TRACE_category("request");
- TRACE_category("data");
- TRACE_category("finalize");
+ TRACE_category_with_color ("compute", "1 0 0"); //red
+ TRACE_category_with_color ("request", "0 1 0"); //green
+ TRACE_category_with_color ("data", "0 0 1"); //blue
+ TRACE_category_with_color ("finalize", "0 0 0");//black
//declaring user categories (for processes)
//declaring user categories (for processes)
- TRACE_category("master");
- TRACE_category("slave");
+ TRACE_category_with_color ("master", "1 0 0");
+ TRACE_category_with_color ("slave", "0 0 1");
res = test_all(argv[1], argv[2]);
MSG_clean();
res = test_all(argv[1], argv[2]);
MSG_clean();