source: proiecte/hpl/openmpi_compiled/include/vampirtrace/vt_user.h @ 97

Last change on this file since 97 was 97, checked in by (none), 14 years ago

Adding compiled files

File size: 1.2 KB
Line 
1/**
2 * VampirTrace
3 * http://www.tu-dresden.de/zih/vampirtrace
4 *
5 * Copyright (c) 2005-2008, ZIH, TU Dresden, Federal Republic of Germany
6 *
7 * Copyright (c) 1998-2005, Forschungszentrum Juelich, Juelich Supercomputing
8 *                          Centre, Federal Republic of Germany
9 *
10 * See the file COPYING in the package base directory for details
11 **/
12
13#ifndef _VT_USER_H
14#define _VT_USER_H
15
16#ifdef __cplusplus
17#   define EXTERN extern "C"
18#else
19#   define EXTERN extern
20#endif
21
22#include <vt_user_count.h>
23#include <vt_user_comment.h>
24
25#ifdef VTRACE
26
27  EXTERN void VT_User_start__(char* name, char* file, int lno);
28  EXTERN void VT_User_end__(char* name);
29
30  #ifdef __cplusplus
31    class VT_Tracer {
32    public:
33      VT_Tracer(char* name, char* file, int lno) : n(name) {
34        VT_User_start__(name, file, lno);
35      }
36      ~VT_Tracer() { VT_User_end__(n); }
37    private:
38      char *n;
39    };
40    #define VT_TRACER(n) VT_Tracer VT_Trc__(n, __FILE__, __LINE__)
41  #endif
42
43  #define VT_USER_START(n) VT_User_start__(n, __FILE__, __LINE__)
44  #define VT_USER_END(n)   VT_User_end__(n)
45
46#else
47
48  #define VT_USER_START(n)
49  #define VT_USER_END(n)
50  #define VT_TRACER(n)
51
52#endif /* VTRACE */
53
54#endif /* _VT_USER_H */
Note: See TracBrowser for help on using the repository browser.