Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
initial instrumentation points for the smpi component
[simgrid.git] / src / instr / smpi_instr.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/private.h"
8
9 #ifdef HAVE_TRACING
10
11 void TRACE_smpi_start (void)
12 {
13   if (IS_TRACING_SMPI){
14     TRACE_start ();
15   }
16 }
17
18 void TRACE_smpi_end (void)
19 {
20   if (IS_TRACING_SMPI){
21     TRACE_end();
22   }
23 }
24
25 void TRACE_smpi_init (int rank)
26 {
27   if (!IS_TRACING_SMPI) return;
28   //double time = SIMIX_get_clock();
29   //smx_host_t host = SIMIX_host_self();
30 }
31
32 void TRACE_smpi_finalize (int rank)
33 {
34   if (!IS_TRACING_SMPI) return;
35   //double time = SIMIX_get_clock();
36   //smx_host_t host = SIMIX_host_self();
37 }
38
39 #endif
40