]>
Commit | Line | Data |
---|---|---|
7c673cae | 1 | // Copyright (c) 2011-present, Facebook, Inc. All rights reserved. |
11fdf7f2 TL |
2 | // This source code is licensed under both the GPLv2 (found in the |
3 | // COPYING file in the root directory) and Apache 2.0 License | |
4 | // (found in the LICENSE.Apache file in the root directory). | |
7c673cae FG |
5 | // |
6 | #pragma once | |
7 | namespace rocksdb { | |
8 | namespace port { | |
9 | ||
10 | // Install a signal handler to print callstack on the following signals: | |
11 | // SIGILL SIGSEGV SIGBUS SIGABRT | |
12 | // Currently supports linux only. No-op otherwise. | |
13 | void InstallStackTraceHandler(); | |
14 | ||
15 | // Prints stack, skips skip_first_frames frames | |
16 | void PrintStack(int first_frames_to_skip = 0); | |
17 | ||
18 | } // namespace port | |
19 | } // namespace rocksdb |