Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[trace] smpi api tracing updated to the new tracing utilities
[simgrid.git] / src / instr / instr_smx.c
1 /* Copyright (c) 2010. The SimGrid Team.
2  * All rights reserved.                                                     */
3
4 /* This program is free software; you can redistribute it and/or modify it
5   * under the terms of the license (GNU LGPL) which comes with this package. */
6
7 #include "instr/instr_private.h"
8
9 #ifdef HAVE_TRACING
10
11 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(instr_simix, instr, "Tracing Simix");
12
13 void TRACE_smx_host_execute(smx_action_t act)
14 {
15   if (!TRACE_is_active()) return;
16   TRACE_surf_resource_utilization_start(act);
17   return;
18 }
19
20 void TRACE_smx_action_communicate(smx_action_t act, smx_process_t proc)
21 {
22   if (!TRACE_is_active()) return;
23   TRACE_surf_resource_utilization_start(act);
24   return;
25 }
26
27 void TRACE_smx_action_destroy(smx_action_t act)
28 {
29   if (!TRACE_is_active()) return;
30   TRACE_surf_resource_utilization_end(act);
31   return;
32 }
33
34 #endif /* HAVE_TRACING */