blob: 62863be300102e14d3e3738653ce92c88d5c88b2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
// Copyright (C) 2024 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include "sqliteglobal.h"
#include <nanotrace/nanotracehr.h>
#include <memory>
namespace Sqlite {
using namespace NanotraceHR::Literals;
#ifdef ENABLE_SQLITE_TRACING
using TraceFile = NanotraceHR::EnabledTraceFile;
SQLITE_EXPORT std::shared_ptr<NanotraceHR::EnabledTraceFile> traceFile();
NanotraceHR::EnabledCategory &sqliteLowLevelCategory();
SQLITE_EXPORT NanotraceHR::EnabledCategory &sqliteHighLevelCategory();
#else
inline NanotraceHR::DisabledCategory sqliteLowLevelCategory()
{
return {};
}
inline NanotraceHR::DisabledCategory sqliteHighLevelCategory()
{
return {};
}
#endif
} // namespace Sqlite
|