source:
vendors/XIOS/current/src/tracer.cpp
@
7197
Last change on this file since 7197 was 3428, checked in by rblod, 12 years ago | |
---|---|
File size: 533 bytes |
Rev | Line | |
---|---|---|
[3428] | 1 | #include "tracer.hpp" |
2 | #ifdef VTRACE | |
3 | #include <vt_user.h> | |
4 | #endif | |
5 | #include <string> | |
6 | ||
7 | namespace 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.