New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
tracer.cpp in vendors/XIOS/current/src – NEMO

source: vendors/XIOS/current/src/tracer.cpp @ 3428

Last change on this file since 3428 was 3428, checked in by rblod, 12 years ago

importing initial XIOS vendor drop

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.