diff --git a/tools/profiler/TableTicker.h b/tools/profiler/TableTicker.h index 25aa1b1ae7bc..15dde7d8382f 100644 --- a/tools/profiler/TableTicker.h +++ b/tools/profiler/TableTicker.h @@ -65,7 +65,9 @@ class TableTicker: public Sampler { mProfileJS = hasFeature(aFeatures, aFeatureCount, "js"); mProfileJava = hasFeature(aFeatures, aFeatureCount, "java"); mProfilePower = hasFeature(aFeatures, aFeatureCount, "power"); - mProfileThreads = hasFeature(aFeatures, aFeatureCount, "threads"); + // Users sometimes ask to filter by a list of threads but forget to request + // profiling non main threads. Let's make it implificit if we have a filter + mProfileThreads = hasFeature(aFeatures, aFeatureCount, "threads") || aFilterCount > 0; mUnwinderThread = hasFeature(aFeatures, aFeatureCount, "unwinder") || sps_version2(); mAddLeafAddresses = hasFeature(aFeatures, aFeatureCount, "leaf"); mPrivacyMode = hasFeature(aFeatures, aFeatureCount, "privacy");