Last change
on this file since 1085 was
501,
checked in by ymipsl, 10 years ago
|
Add licence copyright to all file ond directory src using the command :
svn propset -R copyright -F header_licence src
XIOS is now officialy under CeCILL licence
YM
|
-
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:
533 bytes
|
Rev | Line | |
---|
[347] | 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.