-
-/** Main function */
-int main(int argc, char *argv[])
-{
- MSG_error_t res = MSG_OK;
- int is_tracing = 0;
- int i;
-
- for (i = 0; i < argc; i++){
- if (!strcmp (argv[i], "--trace")){
- is_tracing = 1;
- }
- }
-
- if (is_tracing){
- //if TRACE_start is not called, all other tracing
- //functions will be disabled
- TRACE_start ("simulation.trace");
- }
- TRACE_host_variable_declare ("is_slave");
- TRACE_host_variable_declare ("is_master");
- TRACE_host_variable_declare ("task_creation");
- TRACE_host_variable_declare ("task_computation");
- TRACE_category ("compute");
- TRACE_category ("finalize");
-
- MSG_global_init(&argc,argv);
- if (argc < 3) {
- printf ("Usage: %s platform_file deployment_file\n",argv[0]);
- printf ("example: %s msg_platform.xml msg_deployment.xml\n",argv[0]);
- exit(1);
- }
- res = test_all(argv[1],argv[2]);
- SIMIX_message_sizes_output("toto.txt");