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

Issue 2301523007: Add trace events for some of telemetry internal functions (Closed)

Created:
4 years, 3 months ago by nednguyen
Modified:
4 years, 3 months ago
CC:
catapult-reviews_chromium.org, perezju, petrcermak, rnephew (Reviews Here), telemetry-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
catapult
Visibility:
Public.

Description

Add trace events for some of telemetry internal functions This will help understand how telemetry spends its time. Results of this CL: http://imgur.com/a/h4NSt This CL also fixes some of the timing in py_trace_event to use trace_time.time(). BUG=chromium:641934 Committed: https://chromium.googlesource.com/external/github.com/catapult-project/catapult/+/6dd81149598a684d96bdf3cd482e004580ea040a

Patch Set 1 #

Total comments: 2

Patch Set 2 : Address Juan's comments #

Total comments: 3

Patch Set 3 : Add traced meta_class #

Patch Set 4 : Add more trace events #

Patch Set 5 : rebased #

Patch Set 6 : Address Petr's nits #

Total comments: 10

Patch Set 7 : Address Petr's nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -12 lines) Patch
M common/py_trace_event/py_trace_event/trace_event.py View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M common/py_trace_event/py_trace_event/trace_event_impl/__init__.py View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M common/py_trace_event/py_trace_event/trace_event_impl/decorators.py View 2 chunks +5 lines, -4 lines 0 comments Download
M common/py_trace_event/py_trace_event/trace_event_impl/log.py View 1 2 3 4 5 3 chunks +5 lines, -3 lines 0 comments Download
A common/py_trace_event/py_trace_event/trace_event_impl/meta_class.py View 1 2 3 1 chunk +16 lines, -0 lines 0 comments Download
D firefighter/default/tracing/third_party View 1 2 1 chunk +0 lines, -1 line 0 comments Download
D firefighter/default/tracing/tracing View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M telemetry/telemetry/benchmark_runner.py View 1 2 3 4 5 6 3 chunks +3 lines, -1 line 0 comments Download
M telemetry/telemetry/core/network_controller.py View 1 2 3 2 chunks +5 lines, -0 lines 0 comments Download
M telemetry/telemetry/internal/actions/page_action.py View 1 2 3 4 5 6 2 chunks +5 lines, -0 lines 0 comments Download
M telemetry/telemetry/internal/backends/app_backend.py View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M telemetry/telemetry/internal/backends/chrome_inspector/inspector_backend.py View 1 2 3 2 chunks +5 lines, -0 lines 0 comments Download
M telemetry/telemetry/internal/platform/tracing_controller_backend.py View 1 chunk +6 lines, -2 lines 0 comments Download
M telemetry/telemetry/page/legacy_page_test.py View 1 2 3 4 5 6 2 chunks +4 lines, -0 lines 0 comments Download
M telemetry/telemetry/story/shared_state.py View 1 2 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 56 (31 generated)
nednguyen
4 years, 3 months ago (2016-09-02 15:30:21 UTC) #3
perezju
Just a few drive by comments. Also, not sure on the exact mechanics of this, ...
4 years, 3 months ago (2016-09-02 15:41:04 UTC) #7
nednguyen
https://codereview.chromium.org/2301523007/diff/1/telemetry/telemetry/internal/actions/action_runner.py File telemetry/telemetry/internal/actions/action_runner.py (right): https://codereview.chromium.org/2301523007/diff/1/telemetry/telemetry/internal/actions/action_runner.py#newcode50 telemetry/telemetry/internal/actions/action_runner.py:50: with trace_event.trace('WillRun%s' % str(action_name)): On 2016/09/02 15:41:04, perezju wrote: ...
4 years, 3 months ago (2016-09-02 15:44:06 UTC) #8
nednguyen
On 2016/09/02 15:44:06, nednguyen wrote: > https://codereview.chromium.org/2301523007/diff/1/telemetry/telemetry/internal/actions/action_runner.py > File telemetry/telemetry/internal/actions/action_runner.py (right): > > https://codereview.chromium.org/2301523007/diff/1/telemetry/telemetry/internal/actions/action_runner.py#newcode50 > ...
4 years, 3 months ago (2016-09-02 15:44:46 UTC) #9
nednguyen
On 2016/09/02 15:44:46, nednguyen wrote: > On 2016/09/02 15:44:06, nednguyen wrote: > > > https://codereview.chromium.org/2301523007/diff/1/telemetry/telemetry/internal/actions/action_runner.py ...
4 years, 3 months ago (2016-09-02 16:36:09 UTC) #10
nednguyen
On 2016/09/02 16:36:09, nednguyen wrote: > On 2016/09/02 15:44:46, nednguyen wrote: > > On 2016/09/02 ...
4 years, 3 months ago (2016-09-02 16:40:02 UTC) #11
charliea (OOO until 10-5)
lgtm, but understand that it's blocked on https://github.com/catapult-project/catapult/issues/2600 I have a partially implemented fix, but ...
4 years, 3 months ago (2016-09-02 19:27:56 UTC) #13
benjhayden
drive-by question :-) https://codereview.chromium.org/2301523007/diff/20001/telemetry/telemetry/internal/story_runner.py File telemetry/telemetry/internal/story_runner.py (right): https://codereview.chromium.org/2301523007/diff/20001/telemetry/telemetry/internal/story_runner.py#newcode83 telemetry/telemetry/internal/story_runner.py:83: with trace_event.trace('%s.WillRunStory' % state_name, story=story.name): It ...
4 years, 3 months ago (2016-09-02 22:57:15 UTC) #15
nednguyen
https://codereview.chromium.org/2301523007/diff/20001/telemetry/telemetry/internal/story_runner.py File telemetry/telemetry/internal/story_runner.py (right): https://codereview.chromium.org/2301523007/diff/20001/telemetry/telemetry/internal/story_runner.py#newcode83 telemetry/telemetry/internal/story_runner.py:83: with trace_event.trace('%s.WillRunStory' % state_name, story=story.name): On 2016/09/02 22:57:15, benjhayden ...
4 years, 3 months ago (2016-09-02 23:12:17 UTC) #16
benjhayden
On 2016/09/02 at 23:12:17, nednguyen wrote: > https://codereview.chromium.org/2301523007/diff/20001/telemetry/telemetry/internal/story_runner.py > File telemetry/telemetry/internal/story_runner.py (right): > > https://codereview.chromium.org/2301523007/diff/20001/telemetry/telemetry/internal/story_runner.py#newcode83 ...
4 years, 3 months ago (2016-09-03 05:00:12 UTC) #17
nednguyen
On 2016/09/03 05:00:12, benjhayden wrote: > On 2016/09/02 at 23:12:17, nednguyen wrote: > > > ...
4 years, 3 months ago (2016-09-03 11:40:44 UTC) #18
nednguyen
On 2016/09/03 11:40:44, nednguyen wrote: > On 2016/09/03 05:00:12, benjhayden wrote: > > On 2016/09/02 ...
4 years, 3 months ago (2016-09-03 11:50:30 UTC) #19
benjhayden
On 2016/09/03 at 11:50:30, nednguyen wrote: > On 2016/09/03 11:40:44, nednguyen wrote: > > On ...
4 years, 3 months ago (2016-09-04 02:55:07 UTC) #20
Zhen Wang
lgtm
4 years, 3 months ago (2016-09-04 16:31:06 UTC) #21
petrcermak
LGTM with some description nits: 1) s/Add traces/Add trace events/ 2) s/telemetry spend it times/telemetry ...
4 years, 3 months ago (2016-09-05 12:50:47 UTC) #23
nednguyen
On 2016/09/05 12:50:47, petrcermak wrote: > LGTM with some description nits: > > 1) s/Add ...
4 years, 3 months ago (2016-09-06 20:44:50 UTC) #25
nednguyen
On 2016/09/06 20:44:50, nednguyen wrote: > On 2016/09/05 12:50:47, petrcermak wrote: > > LGTM with ...
4 years, 3 months ago (2016-09-06 20:50:32 UTC) #29
perezju
https://codereview.chromium.org/2301523007/diff/100001/common/py_trace_event/py_trace_event/trace_event_impl/meta_class.py File common/py_trace_event/py_trace_event/trace_event_impl/meta_class.py (right): https://codereview.chromium.org/2301523007/diff/100001/common/py_trace_event/py_trace_event/trace_event_impl/meta_class.py#newcode14 common/py_trace_event/py_trace_event/trace_event_impl/meta_class.py:14: attrs[attr_name] = decorators.traced(attr_value) is this tracing every single method? ...
4 years, 3 months ago (2016-09-07 09:06:52 UTC) #30
petrcermak
I'm a big fan of metaclasses, so LGTM :-) supernit: Missing period after "trace_time.time()" in ...
4 years, 3 months ago (2016-09-07 09:38:25 UTC) #31
nednguyen
https://codereview.chromium.org/2301523007/diff/100001/telemetry/telemetry/benchmark_runner.py File telemetry/telemetry/benchmark_runner.py (right): https://codereview.chromium.org/2301523007/diff/100001/telemetry/telemetry/benchmark_runner.py#newcode40 telemetry/telemetry/benchmark_runner.py:40: On 2016/09/07 09:38:24, petrcermak wrote: > nit: there should ...
4 years, 3 months ago (2016-09-07 17:26:12 UTC) #33
commit-bot: I haz the power
COMMIT=false detected. CQ is abandoning the patch.
4 years, 3 months ago (2016-09-13 00:05:32 UTC) #44
commit-bot: I haz the power
COMMIT=false detected. CQ is abandoning the patch.
4 years, 3 months ago (2016-09-13 00:50:41 UTC) #48
commit-bot: I haz the power
COMMIT=false detected. CQ is abandoning the patch.
4 years, 3 months ago (2016-09-13 00:51:00 UTC) #51
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2301523007/120001
4 years, 3 months ago (2016-09-13 00:51:29 UTC) #54
commit-bot: I haz the power
4 years, 3 months ago (2016-09-13 01:13:21 UTC) #56
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/external/github.com/catapult-project/catapu...

Powered by Google App Engine
This is Rietveld 408576698