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

Issue 636203002: Task Execution Duration metrics added as a new benchmark (Closed)

Created:
6 years, 2 months ago by picksi1
Modified:
6 years, 1 month ago
CC:
chromium-reviews, telemetry+watch_chromium.org, vmiura
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

To help guide development and track performance improvements in specific areas this new metric will compile the top-10 slowest tasks across all the pages in a page-set. Part of the scheduling effort is to move long-running tasks into 'idle' periods or refactor them to make them more nibble-able. Knowing which tasks we need to concentrate on is the first step in this. It is hoped that this code will also be built-on to create a metric to find out which long-running tasks most frequently block high priority tasks (e.g. Does GC often block user input being processed?) so we can move them out of the way. BUG=421434 Committed: https://crrev.com/1a103b57e6ff05274635c8a89e40bfaa6000a9ca Cr-Commit-Position: refs/heads/master@{#300084}

Patch Set 1 #

Total comments: 66

Patch Set 2 : White space removed, copyright fixed, code python-ised #

Patch Set 3 : Implementing code review feedback #

Patch Set 4 : Small code layout refactor to aid readability #

Total comments: 4

Patch Set 5 : Individual page data no longer removed #

Total comments: 12

Patch Set 6 : Unit test added #

Total comments: 10

Patch Set 7 : Nits fixed in unit test #

Total comments: 5

Patch Set 8 : Layout fixes #

Total comments: 4

Patch Set 9 : White space fix + removal of debug code #

Unified diffs Side-by-side diffs Delta from patch set Stats (+211 lines, -2 lines) Patch
A tools/perf/benchmarks/task_execution_time.py View 1 2 3 4 5 1 chunk +23 lines, -0 lines 0 comments Download
A tools/perf/measurements/task_execution_time.py View 1 2 3 4 5 6 7 1 chunk +125 lines, -0 lines 0 comments Download
A tools/perf/measurements/task_execution_time_unittest.py View 1 2 3 4 5 6 7 8 1 chunk +49 lines, -0 lines 0 comments Download
M tools/perf/page_sets/key_mobile_sites.py View 1 2 3 4 5 6 2 chunks +7 lines, -1 line 0 comments Download
M tools/perf/page_sets/tough_scheduling_cases.py View 1 2 3 4 5 6 2 chunks +7 lines, -1 line 0 comments Download

Messages

Total messages: 28 (3 generated)
picksi1
I've added a new benchmark 'task_execution_time' to report on the top 10 slowest tasks. It ...
6 years, 2 months ago (2014-10-08 13:15:45 UTC) #2
alexclarke
https://codereview.chromium.org/636203002/diff/1/tools/perf/benchmarks/task_execution_time.py File tools/perf/benchmarks/task_execution_time.py (right): https://codereview.chromium.org/636203002/diff/1/tools/perf/benchmarks/task_execution_time.py#newcode1 tools/perf/benchmarks/task_execution_time.py:1: # Copyright 2013 The Chromium Authors. All rights reserved. ...
6 years, 2 months ago (2014-10-08 13:28:28 UTC) #4
picksi1
https://codereview.chromium.org/636203002/diff/1/tools/perf/benchmarks/task_execution_time.py File tools/perf/benchmarks/task_execution_time.py (right): https://codereview.chromium.org/636203002/diff/1/tools/perf/benchmarks/task_execution_time.py#newcode1 tools/perf/benchmarks/task_execution_time.py:1: # Copyright 2013 The Chromium Authors. All rights reserved. ...
6 years, 2 months ago (2014-10-08 13:47:54 UTC) #5
petrcermak
https://codereview.chromium.org/636203002/diff/1/tools/perf/benchmarks/task_execution_time.py File tools/perf/benchmarks/task_execution_time.py (right): https://codereview.chromium.org/636203002/diff/1/tools/perf/benchmarks/task_execution_time.py#newcode1 tools/perf/benchmarks/task_execution_time.py:1: # Copyright 2013 The Chromium Authors. All rights reserved. ...
6 years, 2 months ago (2014-10-08 14:01:49 UTC) #6
Sami
Thanks Simon, some comments below. https://codereview.chromium.org/636203002/diff/1/tools/perf/benchmarks/task_execution_time.py File tools/perf/benchmarks/task_execution_time.py (right): https://codereview.chromium.org/636203002/diff/1/tools/perf/benchmarks/task_execution_time.py#newcode12 tools/perf/benchmarks/task_execution_time.py:12: """Measures rendering statistics while ...
6 years, 2 months ago (2014-10-08 14:51:53 UTC) #7
picksi1
Code review fixes. https://codereview.chromium.org/636203002/diff/1/tools/perf/benchmarks/task_execution_time.py File tools/perf/benchmarks/task_execution_time.py (right): https://codereview.chromium.org/636203002/diff/1/tools/perf/benchmarks/task_execution_time.py#newcode1 tools/perf/benchmarks/task_execution_time.py:1: # Copyright 2013 The Chromium Authors. ...
6 years, 2 months ago (2014-10-08 15:01:38 UTC) #8
picksi1
Fixes based on Sami's review https://codereview.chromium.org/636203002/diff/1/tools/perf/benchmarks/task_execution_time.py File tools/perf/benchmarks/task_execution_time.py (right): https://codereview.chromium.org/636203002/diff/1/tools/perf/benchmarks/task_execution_time.py#newcode12 tools/perf/benchmarks/task_execution_time.py:12: """Measures rendering statistics while ...
6 years, 2 months ago (2014-10-08 15:58:27 UTC) #9
jdduke (slow)
Maybe flesh out the description a bit with a motivating detail or two about the ...
6 years, 2 months ago (2014-10-08 18:30:33 UTC) #10
picksi1
Small layout fix based on Sami's code review. https://codereview.chromium.org/636203002/diff/1/tools/telemetry/telemetry/value/summary.py File tools/telemetry/telemetry/value/summary.py (right): https://codereview.chromium.org/636203002/diff/1/tools/telemetry/telemetry/value/summary.py#newcode47 tools/telemetry/telemetry/value/summary.py:47: for ...
6 years, 2 months ago (2014-10-09 09:48:50 UTC) #11
Sami
https://codereview.chromium.org/636203002/diff/1/tools/perf/measurements/task_execution_time.py File tools/perf/measurements/task_execution_time.py (right): https://codereview.chromium.org/636203002/diff/1/tools/perf/measurements/task_execution_time.py#newcode59 tools/perf/measurements/task_execution_time.py:59: results.AddValue(skip.SkipValue.SetOnlyShowingSummaries(page)) On 2014/10/08 15:58:26, picksi1 wrote: > We can't ...
6 years, 2 months ago (2014-10-09 10:28:14 UTC) #12
picksi1
I'm no longer removing individual page data. I'll fix up the data viewer to be ...
6 years, 2 months ago (2014-10-09 13:02:20 UTC) #13
Sami
Could you also add a unit test for the new measurement? https://codereview.chromium.org/636203002/diff/80001/tools/perf/benchmarks/task_execution_time.py File tools/perf/benchmarks/task_execution_time.py (right): ...
6 years, 2 months ago (2014-10-09 13:14:47 UTC) #14
jdduke (slow)
+cc vmiura@ who might have some insights into measuring/retrieving task executing durations. https://codereview.chromium.org/636203002/diff/80001/tools/perf/measurements/task_execution_time.py File tools/perf/measurements/task_execution_time.py ...
6 years, 2 months ago (2014-10-09 23:20:07 UTC) #15
picksi1
The renderer-thread is my whole world at the moment! I'm happy to expand this focus ...
6 years, 2 months ago (2014-10-10 11:00:48 UTC) #16
picksi1
I've added two unit tests (1) confirm that we get back the number of results ...
6 years, 2 months ago (2014-10-10 13:20:25 UTC) #17
Sami
Thanks for adding the test! https://codereview.chromium.org/636203002/diff/120001/tools/perf/measurements/task_execution_time_unittest.py File tools/perf/measurements/task_execution_time_unittest.py (right): https://codereview.chromium.org/636203002/diff/120001/tools/perf/measurements/task_execution_time_unittest.py#newcode29 tools/perf/measurements/task_execution_time_unittest.py:29: """ Looks like this ...
6 years, 2 months ago (2014-10-10 17:41:43 UTC) #18
picksi1
Some fixes from code review. Not sure if I should add hand-created data to fix ...
6 years, 2 months ago (2014-10-13 15:19:39 UTC) #19
picksi1
Some fixes from code review. Not sure if I should add hand-created data to fix ...
6 years, 2 months ago (2014-10-13 15:19:42 UTC) #20
petrcermak
https://codereview.chromium.org/636203002/diff/260001/tools/perf/measurements/task_execution_time.py File tools/perf/measurements/task_execution_time.py (right): https://codereview.chromium.org/636203002/diff/260001/tools/perf/measurements/task_execution_time.py#newcode65 tools/perf/measurements/task_execution_time.py:65: process.IterAllSlicesOfName('MessageLoop::RunTask')): This line needs to be indented 4 spaces ...
6 years, 2 months ago (2014-10-13 16:46:23 UTC) #21
picksi1
Python layout issues fixed. PTAL. https://codereview.chromium.org/636203002/diff/260001/tools/perf/measurements/task_execution_time.py File tools/perf/measurements/task_execution_time.py (right): https://codereview.chromium.org/636203002/diff/260001/tools/perf/measurements/task_execution_time.py#newcode65 tools/perf/measurements/task_execution_time.py:65: process.IterAllSlicesOfName('MessageLoop::RunTask')): On 2014/10/13 16:46:23, ...
6 years, 2 months ago (2014-10-16 09:44:28 UTC) #22
Sami
Thanks, lgtm with a couple of nits. https://codereview.chromium.org/636203002/diff/330001/tools/perf/measurements/task_execution_time_unittest.py File tools/perf/measurements/task_execution_time_unittest.py (right): https://codereview.chromium.org/636203002/diff/330001/tools/perf/measurements/task_execution_time_unittest.py#newcode10 tools/perf/measurements/task_execution_time_unittest.py:10: nit: one ...
6 years, 2 months ago (2014-10-16 10:20:30 UTC) #23
picksi1
https://codereview.chromium.org/636203002/diff/330001/tools/perf/measurements/task_execution_time_unittest.py File tools/perf/measurements/task_execution_time_unittest.py (right): https://codereview.chromium.org/636203002/diff/330001/tools/perf/measurements/task_execution_time_unittest.py#newcode10 tools/perf/measurements/task_execution_time_unittest.py:10: On 2014/10/16 10:20:30, Sami wrote: > nit: one more ...
6 years, 2 months ago (2014-10-17 08:34:49 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/636203002/350001
6 years, 2 months ago (2014-10-17 09:06:57 UTC) #26
commit-bot: I haz the power
Committed patchset #9 (id:350001)
6 years, 2 months ago (2014-10-17 09:58:43 UTC) #27
commit-bot: I haz the power
6 years, 2 months ago (2014-10-17 09:59:34 UTC) #28
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/1a103b57e6ff05274635c8a89e40bfaa6000a9ca
Cr-Commit-Position: refs/heads/master@{#300084}

Powered by Google App Engine
This is Rietveld 408576698