source: XIOS/dev/branch_openmp/src/tracer.cpp @ 1642

Last change on this file since 1642 was 1642, checked in by yushan, 5 years ago

dev on ADA. add flag switch _usingEP/_usingMPI

  • Property copyright set to
    Software name : XIOS (Xml I/O Server)
    http://forge.ipsl.jussieu.fr/ioserver
    Creation date : January 2009
    Licence : CeCCIL version2
    see license file in root directory : Licence_CeCILL_V2-en.txt
    or http://www.cecill.info/licences/Licence_CeCILL_V2-en.html
    Holder : CEA/LSCE (Laboratoire des Sciences du CLimat et de l'Environnement)
    CNRS/IPSL (Institut Pierre Simon Laplace)
    Project Manager : Yann Meurdesoif
    yann.meurdesoif@cea.fr
  • Property svn:eol-style set to native
File size: 598 bytes
Line 
1#include "tracer.hpp"
2#ifdef VTRACE
3//#include <vt_user.h>
4#include <VT.h>
5#endif
6#include <string>
7
8namespace xios
9{
10  using namespace std ;
11 
12  void traceOn(void)
13  {
14#ifdef VTRACE
15    //VT_ON() ;
16    VT_traceon() ;
17#endif
18  }
19 
20  void traceOff(void) 
21  {
22#ifdef VTRACE
23    //VT_OFF() ;
24    VT_traceoff() ;
25#endif
26  }
27 
28  void traceBegin(const string& name)
29  {
30#ifdef VTRACE
31    //VT_USER_START(name.c_str()) ;
32#endif
33  }
34 
35  void traceEnd(const string& name)
36  {
37#ifdef VTRACE
38    //VT_USER_END(name.c_str()) ;
39#endif
40  }
41 
42//  void marker(const string& name,const string& text) ;
43 
44 
45}
Note: See TracBrowser for help on using the repository browser.