1 | // -*- C++ -*- |
---|
2 | /*************************************************************************** |
---|
3 | * blitz/tau.h Integration with the Tau profiling package. |
---|
4 | * See http://www.acl.lanl.gov/tau/ |
---|
5 | * |
---|
6 | * $Id$ |
---|
7 | * |
---|
8 | * Copyright (C) 1997-2011 Todd Veldhuizen <tveldhui@acm.org> |
---|
9 | * |
---|
10 | * This file is a part of Blitz. |
---|
11 | * |
---|
12 | * Blitz is free software: you can redistribute it and/or modify |
---|
13 | * it under the terms of the GNU Lesser General Public License |
---|
14 | * as published by the Free Software Foundation, either version 3 |
---|
15 | * of the License, or (at your option) any later version. |
---|
16 | * |
---|
17 | * Blitz is distributed in the hope that it will be useful, |
---|
18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
20 | * GNU Lesser General Public License for more details. |
---|
21 | * |
---|
22 | * You should have received a copy of the GNU Lesser General Public |
---|
23 | * License along with Blitz. If not, see <http://www.gnu.org/licenses/>. |
---|
24 | * |
---|
25 | * Suggestions: blitz-devel@lists.sourceforge.net |
---|
26 | * Bugs: blitz-support@lists.sourceforge.net |
---|
27 | * |
---|
28 | * For more information, please see the Blitz++ Home Page: |
---|
29 | * https://sourceforge.net/projects/blitz/ |
---|
30 | * |
---|
31 | ***************************************************************************/ |
---|
32 | |
---|
33 | #ifndef BZ_TAU_H |
---|
34 | #define BZ_TAU_H |
---|
35 | |
---|
36 | #ifdef BZ_TAU_PROFILING |
---|
37 | #define TAU_BLITZ TAU_USER1 |
---|
38 | #include <Profile/Profiler.h> |
---|
39 | |
---|
40 | #else |
---|
41 | #define TYPE_STRING(profileString, str) |
---|
42 | #define PROFILED_BLOCK(name, type) |
---|
43 | #define TAU_TYPE_STRING(profileString, str) |
---|
44 | #define TAU_PROFILE(name, type, group) |
---|
45 | #define TAU_PROFILE_TIMER(var, name, type, group) |
---|
46 | #define TAU_PROFILE_START(var) |
---|
47 | #define TAU_PROFILE_STOP(var) |
---|
48 | #define TAU_PROFILE_STMT(stmt) |
---|
49 | #define TAU_PROFILE_EXIT(msg) |
---|
50 | #define TAU_PROFILE_INIT(argc, argv) |
---|
51 | #define TAU_PROFILE_SET_NODE(node) |
---|
52 | #define CT(obj) |
---|
53 | #endif // ! BZ_TAU_PROFILING |
---|
54 | |
---|
55 | #endif // BZ_TAU_H |
---|