Zrythm
v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
backtrace.h
1
// SPDX-FileCopyrightText: © 2020, 2024-2025 Alexandros Theodotou <alex@zrythm.org>
2
// SPDX-License-Identifier: LicenseRef-ZrythmLicense
3
4
#pragma once
5
6
#include <memory>
7
#include <string>
8
9
namespace
backward
10
{
11
class
SignalHandling;
12
}
13
14
namespace
zrythm::utils
15
{
16
17
class
Backtrace
18
{
19
public
:
20
Backtrace ();
21
26
static
std::unique_ptr<backward::SignalHandling>
init_signal_handlers
();
27
28
public
:
35
std::string
36
get_backtrace
(std::string prefix,
size_t
depth,
bool
write_to_file);
37
};
38
39
};
// namespace zrythm::utils
zrythm::utils::Backtrace::init_signal_handlers
static std::unique_ptr< backward::SignalHandling > init_signal_handlers()
To be called once at the beginning of the program to setup the signal handlers.
zrythm::utils::Backtrace::get_backtrace
std::string get_backtrace(std::string prefix, size_t depth, bool write_to_file)
Returns the backtrace with depth number of elements and a string prefix prefix.
zrythm::utils
String utilities.
Definition
algorithms.h:12
src
utils
backtrace.h
Generated by
1.15.0