Bug 1463408 part 1 - Remove unused restyle profiler feature. r=mstange

MozReview-Commit-ID: F5i5W02jhEV

--HG--
extra : rebase_source : 5fdddf6383f334c831396dc8348a7d3c032c93a6
This commit is contained in:
Xidorn Quan 2018-05-23 19:34:23 +10:00
parent e186d16906
commit 4f8d1e3a65
3 changed files with 0 additions and 11 deletions

View File

@ -30,7 +30,6 @@
"memory",
"privacy",
"responsiveness",
"restyle",
"screenshots",
"stackwalk",
"tasktracer",

View File

@ -125,9 +125,6 @@ class TimeStamp;
/* Collect thread responsiveness information. */ \
macro(6, "responsiveness", Responsiveness) \
\
/* Restyle profiling. */ \
macro(7, "restyle", Restyle) \
\
/* Take a snapshot of the window on every composition. */ \
macro(7, "screenshots", Screenshots) \
\

View File

@ -42,7 +42,6 @@ InactiveFeaturesAndParamsCheck()
ASSERT_TRUE(!profiler_is_active());
ASSERT_TRUE(!profiler_feature_active(ProfilerFeature::MainThreadIO));
ASSERT_TRUE(!profiler_feature_active(ProfilerFeature::Privacy));
ASSERT_TRUE(!profiler_feature_active(ProfilerFeature::Restyle));
profiler_get_start_params(&entries, &interval, &features, &filters);
@ -87,7 +86,6 @@ TEST(GeckoProfiler, FeaturesAndParams)
ASSERT_TRUE(profiler_is_active());
ASSERT_TRUE(!profiler_feature_active(ProfilerFeature::MainThreadIO));
ASSERT_TRUE(!profiler_feature_active(ProfilerFeature::Privacy));
ASSERT_TRUE(!profiler_feature_active(ProfilerFeature::Restyle));
ActiveParamsCheck(PROFILER_DEFAULT_ENTRIES, PROFILER_DEFAULT_INTERVAL,
features, filters, MOZ_ARRAY_LENGTH(filters));
@ -109,7 +107,6 @@ TEST(GeckoProfiler, FeaturesAndParams)
ASSERT_TRUE(profiler_is_active());
ASSERT_TRUE(profiler_feature_active(ProfilerFeature::MainThreadIO));
ASSERT_TRUE(profiler_feature_active(ProfilerFeature::Privacy));
ASSERT_TRUE(!profiler_feature_active(ProfilerFeature::Restyle));
// Profiler::Threads is added because filters has multiple entries.
ActiveParamsCheck(999999, 3,
@ -132,7 +129,6 @@ TEST(GeckoProfiler, FeaturesAndParams)
ASSERT_TRUE(profiler_is_active());
ASSERT_TRUE(profiler_feature_active(ProfilerFeature::MainThreadIO));
ASSERT_TRUE(profiler_feature_active(ProfilerFeature::Privacy));
ASSERT_TRUE(profiler_feature_active(ProfilerFeature::Restyle));
ActiveParamsCheck(88888, 10,
availableFeatures, filters, MOZ_ARRAY_LENGTH(filters));
@ -153,7 +149,6 @@ TEST(GeckoProfiler, FeaturesAndParams)
ASSERT_TRUE(profiler_is_active());
ASSERT_TRUE(!profiler_feature_active(ProfilerFeature::MainThreadIO));
ASSERT_TRUE(!profiler_feature_active(ProfilerFeature::Privacy));
ASSERT_TRUE(!profiler_feature_active(ProfilerFeature::Restyle));
// Entries and intervals go to defaults if 0 is specified.
ActiveParamsCheck(PROFILER_DEFAULT_ENTRIES, PROFILER_DEFAULT_INTERVAL,
@ -267,7 +262,6 @@ TEST(GeckoProfiler, DifferentThreads)
ASSERT_TRUE(profiler_is_active());
ASSERT_TRUE(!profiler_feature_active(ProfilerFeature::MainThreadIO));
ASSERT_TRUE(!profiler_feature_active(ProfilerFeature::Privacy));
ASSERT_TRUE(!profiler_feature_active(ProfilerFeature::Restyle));
ActiveParamsCheck(PROFILER_DEFAULT_ENTRIES, PROFILER_DEFAULT_INTERVAL,
features, filters, MOZ_ARRAY_LENGTH(filters));
@ -296,7 +290,6 @@ TEST(GeckoProfiler, DifferentThreads)
ASSERT_TRUE(profiler_is_active());
ASSERT_TRUE(!profiler_feature_active(ProfilerFeature::MainThreadIO));
ASSERT_TRUE(!profiler_feature_active(ProfilerFeature::Privacy));
ASSERT_TRUE(!profiler_feature_active(ProfilerFeature::Restyle));
ActiveParamsCheck(PROFILER_DEFAULT_ENTRIES,
PROFILER_DEFAULT_INTERVAL,