source: vendor/nemo/current/NEMOGCM/EXTERNAL/XIOS/src/tracer.cpp @ 44

Last change on this file since 44 was 44, checked in by cholod, 12 years ago

Load NEMO_TMP into vendor/nemo/current.

File size: 533 bytes
Line 
1#include "tracer.hpp"
2#ifdef VTRACE
3#include <vt_user.h>
4#endif
5#include <string>
6
7namespace xios
8{
9  using namespace std ;
10 
11  void traceOn(void)
12  {
13#ifdef VTRACE
14    VT_ON() ;
15#endif
16  }
17 
18  void traceOff(void) 
19  {
20#ifdef VTRACE
21    VT_OFF() ;
22#endif
23  }
24 
25  void traceBegin(const string& name)
26  {
27#ifdef VTRACE
28    VT_USER_START(name.c_str()) ;
29#endif
30  }
31 
32  void traceEnd(const string& name)
33  {
34#ifdef VTRACE
35    VT_USER_END(name.c_str()) ;
36#endif
37  }
38 
39//  void marker(const string& name,const string& text) ;
40 
41 
42}
Note: See TracBrowser for help on using the repository browser.