TRACE_paje_start();
/* activate trace */
- xbt_assert (trace_active==0, "Tracing is already active.");
+ if (trace_active == 1){
+ THROWF (tracing_error, 0, "Tracing is already active");
+ }
trace_active = 1;
XBT_DEBUG ("Tracing is on");
int TRACE_smpi_is_enabled(void)
{
- return (xbt_cfg_get_int(_surf_cfg_set, OPT_TRACING_SMPI) ||
- TRACE_smpi_is_grouped())&&
- TRACE_is_enabled();
+ return (trace_smpi_enabled || TRACE_smpi_is_grouped())
+ && TRACE_is_enabled();
}
int TRACE_smpi_is_grouped(void)
char *name, *value;
FILE *file = fopen (output, "w");
- xbt_assert (file != NULL,
- "Unable to open file (%s) for writing triva graph "
- "configuration (uncategorized).", output);
+ if (file == NULL){
+ THROWF (system_error, 1, "Unable to open file (%s) for writing triva graph "
+ "configuration (uncategorized).", output);
+ }
//open
fprintf (file, "{\n");
}
FILE *file = fopen (output, "w");
- xbt_assert (file != NULL,
- "Unable to open file (%s) for writing triva graph "
- "configuration (categorized).", output);
+ if (file == NULL){
+ THROWF (system_error, 1, "Unable to open file (%s) for writing triva graph "
+ "configuration (categorized).", output);
+ }
//open
fprintf (file, "{\n");
}
}
-void TRACE_set_network_update_mechanism (void)
-{
- if (TRACE_is_enabled()){
- if (TRACE_categorized() || TRACE_uncategorized()){
- XBT_INFO ("Tracing resource utilization active, network/optim configuration now set to Full.");
- xbt_cfg_set_string (_surf_cfg_set, "network/optim", "Full");
- }
- }
-}
-
#undef OPT_TRACING
#undef OPT_TRACING_PLATFORM
#undef OPT_TRACING_SMPI