Last change
on this file since 2616 was
2593,
checked in by jderouillat, 9 months ago
|
Rename the MemTrack? namespace associated to CppTrace? (conflict with the --memtrack option), waiting for its full integration
|
-
Property svn:executable set to
*
|
File size:
388 bytes
|
Rev | Line | |
---|
[2575] | 1 | #ifndef __XIOS_BACKTRACE_HPP__ |
---|
| 2 | #define __XIOS_BACKTRACE_HPP__ |
---|
| 3 | |
---|
| 4 | #include <sstream> |
---|
| 5 | #include <string> |
---|
| 6 | |
---|
| 7 | namespace xios |
---|
| 8 | { |
---|
[2593] | 9 | namespace MemCppTrack |
---|
[2575] | 10 | { |
---|
| 11 | void backTrace(std::ostringstream& stack, int n=0) ; |
---|
| 12 | |
---|
| 13 | inline const std::string backTrace(int n=0) |
---|
| 14 | { |
---|
| 15 | std::ostringstream stack ; |
---|
| 16 | backTrace(stack,n) ; |
---|
| 17 | return stack.str() ; |
---|
| 18 | } |
---|
| 19 | } |
---|
| 20 | } |
---|
| 21 | |
---|
| 22 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.