ttg 1.0.0
Template Task Graph (TTG): flowgraph-based programming model for high-performance distributed-memory algorithms
Loading...
Searching...
No Matches
backtrace.h
Go to the documentation of this file.
1// SPDX-License-Identifier: BSD-3-Clause
2//
3// backtrace.h
4//
5// Copyright (C) 1996 Limit Point Systems, Inc.
6//
7// Author: Curtis Janssen <cljanss@limitpt.com>
8// Maintainer: LPS
9//
10// This file is part of the SC Toolkit.
11//
12// The SC Toolkit is free software; you can redistribute it and/or modify
13// it under the terms of the GNU Library General Public License as published by
14// the Free Software Foundation; either version 2, or (at your option)
15// any later version.
16//
17// The SC Toolkit 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 Library General Public License for more details.
21//
22// You should have received a copy of the GNU Library General Public License
23// along with the SC Toolkit; see the file COPYING.LIB. If not, write to
24// the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
25//
26// The U.S. Government is granted a limited license as per AL 91-7.
27//
28
29#ifndef TTG_UTIL_CORE_BACKTRACE_H_
30#define TTG_UTIL_CORE_BACKTRACE_H_
31
32#include <string>
33#include <vector>
34
35namespace ttg {
36 namespace detail {
51 class Backtrace {
52 public:
56 Backtrace(const std::string& prefix = std::string(""));
57 Backtrace(const Backtrace&);
58
62 bool empty() const { return frames_.empty(); }
63
70 std::string str(const size_t nframes_to_skip = 0) const;
71
72 private:
74 std::vector<std::string> frames_;
76 std::string prefix_;
77
79 static std::string __demangle(const std::string& symbol);
80 };
81 } // namespace detail
82} // namespace ttg
83
84#endif // TTG_UTIL_CORE_BACKTRACE_H_
bool empty() const
Definition backtrace.h:62
std::string str(const size_t nframes_to_skip=0) const
top-level TTG namespace contains runtime-neutral functionality
Definition keymap.h:9