]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | // Copyright (c) 2011-present, Facebook, Inc. All rights reserved. |
2 | // This source code is licensed under the BSD-style license found in the | |
3 | // LICENSE file in the root directory of this source tree. An additional grant | |
4 | // of patent rights can be found in the PATENTS file in the same directory. | |
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 |