aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/lwtrace/shuttle.cpp
blob: 6ef6982aea1541c617bf1dc6598ed6fdd3d26260 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include "shuttle.h"

#include "probes.h"

#include <util/system/backtrace.h>
#include <util/stream/str.h>

namespace NLWTrace {
    LWTRACE_USING(LWTRACE_INTERNAL_PROVIDER);

    inline TString CurrentBackTrace() {
        TStringStream ss;
        FormatBackTrace(&ss);
        return ss.Str();
    }

    void TOrbit::LockFailed() {
        LWPROBE(OrbitIsUsedConcurrentlyError, CurrentBackTrace());
    }
} // namespace NLWTrace