diff options
author | Eike Ziller <[email protected]> | 2024-01-19 15:31:22 +0100 |
---|---|---|
committer | Eike Ziller <[email protected]> | 2024-01-22 13:50:39 +0000 |
commit | 1a84ae038df0757f44d890ad3d5b2e055d5dda7e (patch) | |
tree | ddc60ed3a6b924ebf1bfc529b4febb30db8b9ab0 /src/libs/qmlpuppetcommunication | |
parent | 7d7f97a74775ff9a6a69d378b5dc40f20951fc3c (diff) |
Build nanotrace profiling by default
And enable its availability for startup performance measurement.
Makes it possible to run with `-trace <filepath>`, creating a CTF for
startup performance, without requiring a special QtC build.
Usage in QmlDesigner/DesignStudio is guarded by an additional
DESIGNSTUDIO_USE_NANOTRACE CMake option (default off), since that adds a
menu item that should usually not be shown.
Change-Id: I87200745cc32f256bcaaba21f139b4104459e49a
Reviewed-by: hjk <[email protected]>
Reviewed-by: <[email protected]>
Reviewed-by: Knud Dollereder <[email protected]>
Diffstat (limited to 'src/libs/qmlpuppetcommunication')
-rw-r--r-- | src/libs/qmlpuppetcommunication/interfaces/nodeinstanceglobal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/qmlpuppetcommunication/interfaces/nodeinstanceglobal.h b/src/libs/qmlpuppetcommunication/interfaces/nodeinstanceglobal.h index aefaeb88e3f..d5a715f1d86 100644 --- a/src/libs/qmlpuppetcommunication/interfaces/nodeinstanceglobal.h +++ b/src/libs/qmlpuppetcommunication/interfaces/nodeinstanceglobal.h @@ -54,7 +54,7 @@ enum class View3DActionType { constexpr bool isNanotraceEnabled() { -#ifdef NANOTRACE_ENABLED +#ifdef NANOTRACE_DESIGNSTUDIO_ENABLED return true; #else return false; |