X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d9e1bca6c82cd2df3c51534fb421b52400a47a07..dfe72712c28c9f79838b36ed4c22a46f13841107:/src/instr/instr_interface.c diff --git a/src/instr/instr_interface.c b/src/instr/instr_interface.c index 785529168b..052144c405 100644 --- a/src/instr/instr_interface.c +++ b/src/instr/instr_interface.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2010. The SimGrid Team. +/* Copyright (c) 2010-2013. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -111,7 +111,7 @@ void TRACE_category_with_color (const char *category, const char *color) snprintf (final_color, INSTR_DEFAULT_STR_SIZE, "%s", color); } - XBT_DEBUG("CAT,declare %s, %s", category, final_color); + XBT_DEBUG("CAT,declare %s, \"%s\" \"%s\"", category, color, final_color); //define the type of this category on top of hosts and links instr_new_variable_type (category, final_color); @@ -1146,4 +1146,22 @@ xbt_dynar_t TRACE_get_edge_types (void) return instr_dict_to_dynar (trivaEdgeTypes); } +/** \ingroup TRACE_API + * \brief Pauses all tracing activities. + * \see TRACE_resume + */ +void TRACE_pause (void) +{ + instr_pause_tracing(); +} + +/** \ingroup TRACE_API + * \brief Resumes all tracing activities. + * \see TRACE_pause + */ +void TRACE_resume (void) +{ + instr_resume_tracing(); +} + #endif /* HAVE_TRACING */