details:
- MSG_global_init and MSG_clean do the job for the user
if tracing is set to on in cmake
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8618
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
printf("example: %s msg_platform.xml msg_deployment.xml\n", argv[0]);
exit(1);
}
- //starting the simulation tracing
- TRACE_start();
//declaring user categories
TRACE_category("compute");
res = test_all(argv[1], argv[2]);
MSG_clean();
- //ending the simulation tracing
- TRACE_end();
-
if (res == MSG_OK)
return 0;
else
printf("example: %s msg_platform.xml msg_deployment.xml\n", argv[0]);
exit(1);
}
- //starting the simulation tracing
- TRACE_start();
//declaring user variables
TRACE_host_variable_declare("is_slave");
res = test_all(argv[1], argv[2]);
MSG_clean();
- //ending the simulation tracing
- TRACE_end();
-
if (res == MSG_OK)
return 0;
else
argv[0]);
exit(1);
}
- //starting the simulation trace
- TRACE_start();
TRACE_category("emigrant");
/* Simulation setting */
if (res == MSG_OK)
res = MSG_clean();
- //ending the simulation trace
- TRACE_end();
-
if (res == MSG_OK)
return 0;
else
printf("example: %s msg_platform.xml msg_deployment.xml\n", argv[0]);
exit(1);
}
- //starting the simulation tracing
- TRACE_start();
//declaring user categories
TRACE_category("compute");
res = test_all(argv[1], argv[2]);
MSG_clean();
- //ending the simulation tracing
- TRACE_end();
-
if (res == MSG_OK)
return 0;
else
// - the communication volume among processes expects that:
// - the processes involved have a category
// - the tasks sent have a category
- TRACE_start();
//declaring user categories (for tasks)
TRACE_category("compute");
res = test_all(argv[1], argv[2]);
MSG_clean();
- //ending the simulation tracing
- TRACE_end();
-
if (res == MSG_OK)
return 0;
else
SIMIX_function_register_process_cleanup(__MSG_process_cleanup);
SIMIX_function_register_process_kill(_MSG_process_kill_from_SIMIX);
}
+#ifdef HAVE_TRACING
+ TRACE_start();
+#endif
}
/** \defgroup m_channel_management Understanding channels
SIMIX_clean();
+#ifdef HAVE_TRACING
+ TRACE_end();
+#endif
+
return MSG_OK;
}