Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(550)

Unified Diff: tools/perf/measurements/thread_times_unittest.py

Issue 1151543002: Revert of [Telemetry] Disable auto issuing record for thread_times (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/perf/measurements/thread_times.py ('k') | tools/perf/measurements/timeline_controller.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/measurements/thread_times_unittest.py
diff --git a/tools/perf/measurements/thread_times_unittest.py b/tools/perf/measurements/thread_times_unittest.py
index b77c6ff4f64c30230697a6905a32b7d5b91399b1..3c397254b5f1e7c17bc05cb3acb73f9ccfab0f9f 100644
--- a/tools/perf/measurements/thread_times_unittest.py
+++ b/tools/perf/measurements/thread_times_unittest.py
@@ -41,6 +41,21 @@
cpu_time = results.FindAllPageSpecificValuesNamed(cpu_time_name)
self.assertEquals(len(cpu_time), 1)
+ def testBasicForPageWithNoGesture(self):
+ ps = self.CreateEmptyPageSet()
+ ps.AddUserStory(AnimatedPage(ps))
+
+ measurement = thread_times.ThreadTimes()
+ timeline_options = self._options
+ results = self.RunMeasurement(measurement, ps, options = timeline_options)
+ self.assertEquals(0, len(results.failures))
+
+ for interval in timeline.IntervalNames:
+ for category in timeline.TimelineThreadCategories.values():
+ cpu_time_name = timeline.ThreadCpuTimeResultName(category, interval)
+ cpu_time = results.FindAllPageSpecificValuesNamed(cpu_time_name)
+ self.assertEquals(len(cpu_time), 1)
+
@decorators.Disabled('chromeos') # crbug.com/483212
def testWithSilkDetails(self):
ps = self.CreatePageSetFromFileInUnittestDataDir('scrollable_page.html')
« no previous file with comments | « tools/perf/measurements/thread_times.py ('k') | tools/perf/measurements/timeline_controller.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698