A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[trace] cosmetics, remove TRACE_is_active, use TRACE_is_enabled instead
[simgrid.git]
/
src
/
instr
/
instr_interface.c
diff --git
a/src/instr/instr_interface.c
b/src/instr/instr_interface.c
index
5c228a8
..
12966a6
100644
(file)
--- a/
src/instr/instr_interface.c
+++ b/
src/instr/instr_interface.c
@@
-27,7
+27,7
@@
void TRACE_category(const char *category)
void TRACE_category_with_color (const char *category, const char *color)
{
void TRACE_category_with_color (const char *category, const char *color)
{
- if (!(TRACE_
is_active
() && category != NULL))
+ if (!(TRACE_
categorized
() && category != NULL))
return;
xbt_assert (instr_platform_traced(),
return;
xbt_assert (instr_platform_traced(),
@@
-53,14
+53,12
@@
void TRACE_category_with_color (const char *category, const char *color)
XBT_DEBUG("CAT,declare %s, %s", category, final_color);
//define the type of this category on top of hosts and links
XBT_DEBUG("CAT,declare %s, %s", category, final_color);
//define the type of this category on top of hosts and links
- if (TRACE_categorized ()){
- instr_new_variable_type (category, final_color);
- }
+ instr_new_variable_type (category, final_color);
}
void TRACE_declare_mark(const char *mark_type)
{
}
void TRACE_declare_mark(const char *mark_type)
{
- if (!TRACE_is_
active
())
+ if (!TRACE_is_
enabled
())
return;
if (!mark_type)
return;
return;
if (!mark_type)
return;
@@
-71,7
+69,7
@@
void TRACE_declare_mark(const char *mark_type)
void TRACE_mark(const char *mark_type, const char *mark_value)
{
void TRACE_mark(const char *mark_type, const char *mark_value)
{
- if (!TRACE_is_
active
())
+ if (!TRACE_is_
enabled
())
return;
if (!mark_type || !mark_value)
return;
return;
if (!mark_type || !mark_value)
return;
@@
-89,7
+87,7
@@
static void instr_user_variable(double time,
double value,
InstrUserVariable what)
{
double value,
InstrUserVariable what)
{
- if (!TRACE_is_
active
())
+ if (!TRACE_is_
enabled
())
return;
xbt_assert (instr_platform_traced(),
return;
xbt_assert (instr_platform_traced(),