forked from qt-creator/qt-creator
Avoid automatic creation of performance data related .json files
Amends 1a84ae038d
which enabled building
the Nanotrace library by default. The part that is used for startup
performance logging is only enabled at runtime with the `-trace` command
line argument, but some logging using the "hr" variant was automatically
created. Disable that part at compile time by default.
Fixes: QTCREATORBUG-30331
Change-Id: I8add207c760bfe2dde52534f55feb7b637ccb600
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -3,7 +3,6 @@ add_qtc_library(Nanotrace
|
||||
SOURCES
|
||||
nanotraceglobals.h
|
||||
nanotrace.cpp nanotrace.h
|
||||
nanotracehr.cpp nanotracehr.h
|
||||
PUBLIC_DEPENDS Qt::Core Qt::Gui
|
||||
PROPERTIES
|
||||
CXX_VISIBILITY_PRESET default
|
||||
@@ -16,3 +15,9 @@ extend_qtc_library(Nanotrace
|
||||
CONDITION DESIGN_STUDIO_USE_NANOTRACE
|
||||
PUBLIC_DEFINES NANOTRACE_DESIGNSTUDIO_ENABLED
|
||||
)
|
||||
|
||||
option(NANOTRACEHR_ENABLED "Enables collecting high resolution performance data" OFF)
|
||||
extend_qtc_library(Nanotrace
|
||||
SOURCES
|
||||
nanotracehr.cpp nanotracehr.h
|
||||
)
|
||||
|
@@ -34,7 +34,7 @@ enum class Tracing { IsDisabled, IsEnabled };
|
||||
|
||||
constexpr Tracing tracingStatus()
|
||||
{
|
||||
#ifdef NANOTRACE_ENABLED
|
||||
#ifdef NANOTRACEHR_ENABLED
|
||||
return Tracing::IsEnabled;
|
||||
#else
|
||||
return Tracing::IsDisabled;
|
||||
@@ -1569,7 +1569,7 @@ template<typename Category, typename... Arguments>
|
||||
Tracer(typename Category::ArgumentType name, Category &category, Arguments &&...)
|
||||
-> Tracer<Category, typename Category::IsActive>;
|
||||
|
||||
#ifdef NANOTRACE_ENABLED
|
||||
#ifdef NANOTRACEHR_ENABLED
|
||||
class GlobalTracer
|
||||
{
|
||||
public:
|
||||
|
Reference in New Issue
Block a user