QmlProfiler: Always enable the "debug messages" feature

We always have at least one debug message: The one the debug server
itself generates. So, let's unconditionally mark the feature as
recorded when loading data. As the debug messages arrive in a different
debug client, the trace client doesn't know about them otherwise,
and if the feature is not marked as recorded you cannot hide the
respective category with the filter menu.

Change-Id: I68925697486a9461d66560b10947fde70b8a6730
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
This commit is contained in:
Ulf Hermann
2016-04-27 11:36:46 +02:00
parent 4d95fcae0c
commit c8ed9f4b75

View File

@@ -174,7 +174,7 @@ bool QmlProfilerTraceClientPrivate::updateFeatures(ProfileFeature feature)
if (!(requestedFeatures & flag)) if (!(requestedFeatures & flag))
return false; return false;
if (!(recordedFeatures & flag)) { if (!(recordedFeatures & flag)) {
recordedFeatures |= flag; recordedFeatures |= (flag | 1ULL << ProfileDebugMessages);
emit q->recordedFeaturesChanged(recordedFeatures); emit q->recordedFeaturesChanged(recordedFeatures);
} }
return true; return true;