SUNphi  1.0
BackTracing.cpp
Go to the documentation of this file.
1 #ifdef HAVE_CONFIG_H
2  #include "config.hpp"
3 #endif
4 
5 /// \file BackTracing.cpp
6 ///
7 /// \brief Defines the backtracing function
8 
9 #include <execinfo.h>
10 
11 #include <debug/BackTracing.hpp>
12 #include <ios/Logger.hpp>
13 
14 namespace SUNphi
15 {
16  void printBacktraceList()
17  {
18  runLog()<<"Backtracing...";
19 
20  for(auto &p : getBackTraceList())
21  runLog()<<p;
22  }
23 }
void printBacktraceList()
Write the list of called routines.
Definition: BackTracing.cpp:16