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

Issue 2712163002: [Systrace] Fix systrace clock syncing issue with BattOr. (Closed)

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

Description

[Systrace] Fix systrace clock syncing issue with BattOr. It was broken before and they were aligned several hours apart. By explicitly specifying the clock domain in the trace metadata (by using the same output formatter as Telemetry), the trace importer uses that clock domain for the systrace controller trace rather than the default (UNKNOWN_CHROME_LEGACY). This means that it avoids collapsing the systrace controller trace (from the host) and LINUX_CLOCK_MONOTONIC (on the device) into a single clock domain. Since the clocks are on different devices, this would result in misaligned traces. BUG=catapult:#3262 Review-Url: https://codereview.chromium.org/2712163002 Committed: https://chromium.googlesource.com/external/github.com/catapult-project/catapult/+/790242054d40097c6af06bf42804f73e998eb60c

Patch Set 1 #

Total comments: 2

Patch Set 2 : branch approach, old way if only atrace new if multitrace #

Total comments: 1

Patch Set 3 : fix tests #

Total comments: 10

Patch Set 4 : [Systrace] Fix systrace so that it works. #

Total comments: 12

Patch Set 5 : charlies comments #

Patch Set 6 : rebase https://codereview.chromium.org/2736123003/ #

Patch Set 7 : no more telemetry references #

Total comments: 21

Patch Set 8 : [Systrace] Fix systrace clock syncing issue with BattOr. #

Total comments: 4

Patch Set 9 : rebase and change todo #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+113 lines, -39 lines) Patch
M systrace/systrace/__init__.py View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M systrace/systrace/output_generator.py View 1 2 3 4 5 6 7 8 5 chunks +29 lines, -5 lines 0 comments Download
M systrace/systrace/output_generator_unittest.py View 1 2 3 4 5 6 7 3 chunks +49 lines, -25 lines 0 comments Download
A systrace/systrace/test_data/battor_test_data.txt View 1 2 3 4 5 6 7 1 chunk +16 lines, -0 lines 0 comments Download
M systrace/systrace/tracing_controller.py View 1 2 3 4 5 6 7 2 chunks +11 lines, -2 lines 0 comments Download
M tracing/tracing/model/clock_sync_manager.html View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -6 lines 1 comment Download

Messages

Total messages: 70 (40 generated)
rnephew (Reviews Here)
https://codereview.chromium.org/2712163002/diff/1/systrace/profile_chrome/chrome_startup_tracing_agent.py File systrace/profile_chrome/chrome_startup_tracing_agent.py (right): https://codereview.chromium.org/2712163002/diff/1/systrace/profile_chrome/chrome_startup_tracing_agent.py#newcode15 systrace/profile_chrome/chrome_startup_tracing_agent.py:15: from telemetry.timeline import trace_data as trace_data_module I eventually would ...
3 years, 10 months ago (2017-02-24 17:21:26 UTC) #2
Chris Craik
Why are you removing the calls to output_generator? What made that approach start to fail?
3 years, 10 months ago (2017-02-24 18:19:23 UTC) #7
rnephew (Reviews Here)
On 2017/02/24 18:19:23, Chris Craik wrote: > Why are you removing the calls to output_generator? ...
3 years, 10 months ago (2017-02-24 18:21:42 UTC) #8
Chris Craik
On 2017/02/24 at 18:21:42, rnephew wrote: > On 2017/02/24 18:19:23, Chris Craik wrote: > > ...
3 years, 10 months ago (2017-02-24 18:27:30 UTC) #9
rnephew (Reviews Here)
On 2017/02/24 18:27:30, Chris Craik wrote: > On 2017/02/24 at 18:21:42, rnephew wrote: > > ...
3 years, 10 months ago (2017-02-24 18:42:48 UTC) #10
charliea (OOO until 10-5)
I echo ccraik@'s sentiment that we should continue using systrace's output_generator for the time being: ...
3 years, 10 months ago (2017-02-24 21:14:18 UTC) #11
rnephew (Reviews Here)
On 2017/02/24 21:14:18, charliea wrote: > I echo ccraik@'s sentiment that we should continue using ...
3 years, 10 months ago (2017-02-24 21:17:38 UTC) #12
rnephew (Reviews Here)
Ok, I made some changes to this so that if it detects only atrace, it ...
3 years, 9 months ago (2017-02-28 23:30:06 UTC) #13
Chris Craik
Has BattOr synchronization never worked in the past? This is a large change, which feels ...
3 years, 9 months ago (2017-03-01 00:16:16 UTC) #30
rnephew (Reviews Here)
On 2017/03/01 00:16:16, Chris Craik wrote: > Has BattOr synchronization never worked in the past? ...
3 years, 9 months ago (2017-03-01 01:40:49 UTC) #31
charliea (OOO until 10-5)
Overall comment: there's a *lot* going on in this CL that makes it hard to ...
3 years, 9 months ago (2017-03-03 21:49:20 UTC) #37
rnephew (Reviews Here)
https://codereview.chromium.org/2712163002/diff/90001/systrace/systrace/output_generator.py File systrace/systrace/output_generator.py (right): https://codereview.chromium.org/2712163002/diff/90001/systrace/systrace/output_generator.py#newcode15 systrace/systrace/output_generator.py:15: from telemetry.timeline import trace_data On 2017/03/03 21:49:19, charliea wrote: ...
3 years, 9 months ago (2017-03-08 16:56:45 UTC) #38
Chris Craik
As I mentioned for the previous CL, I'd really like to avoid taking any dependencies ...
3 years, 9 months ago (2017-03-09 18:41:45 UTC) #39
nednguyen
On 2017/03/09 18:41:45, Chris Craik wrote: > As I mentioned for the previous CL, I'd ...
3 years, 9 months ago (2017-03-09 18:57:41 UTC) #40
charliea (OOO until 10-5)
Could you please add more detail to the description about why this fixes the clock ...
3 years, 9 months ago (2017-03-10 16:00:18 UTC) #41
charliea (OOO until 10-5)
https://codereview.chromium.org/2712163002/diff/110001/systrace/systrace/output_generator.py File systrace/systrace/output_generator.py (right): https://codereview.chromium.org/2712163002/diff/110001/systrace/systrace/output_generator.py#newcode52 systrace/systrace/output_generator.py:52: # The old method does not support anything except ...
3 years, 9 months ago (2017-03-10 16:18:48 UTC) #42
rnephew (Reviews Here)
https://codereview.chromium.org/2712163002/diff/110001/systrace/systrace/output_generator.py File systrace/systrace/output_generator.py (right): https://codereview.chromium.org/2712163002/diff/110001/systrace/systrace/output_generator.py#newcode52 systrace/systrace/output_generator.py:52: # The old method does not support anything except ...
3 years, 9 months ago (2017-03-10 16:53:38 UTC) #43
charliea (OOO until 10-5)
Rebasing should yield the same effect if the CL is submitted, so I'd just take ...
3 years, 9 months ago (2017-03-10 20:03:34 UTC) #45
rnephew (Reviews Here)
On 2017/03/10 20:03:34, charliea wrote: > Rebasing should yield the same effect if the CL ...
3 years, 9 months ago (2017-03-15 18:06:58 UTC) #46
charliea (OOO until 10-5)
https://codereview.chromium.org/2712163002/diff/170001/systrace/systrace/output_generator.py File systrace/systrace/output_generator.py (right): https://codereview.chromium.org/2712163002/diff/170001/systrace/systrace/output_generator.py#newcode52 systrace/systrace/output_generator.py:52: # The old method does not support anything except ...
3 years, 9 months ago (2017-03-20 14:37:38 UTC) #47
Chris Craik
https://codereview.chromium.org/2712163002/diff/170001/systrace/systrace/output_generator.py File systrace/systrace/output_generator.py (right): https://codereview.chromium.org/2712163002/diff/170001/systrace/systrace/output_generator.py#newcode52 systrace/systrace/output_generator.py:52: # The old method does not support anything except ...
3 years, 9 months ago (2017-03-20 17:38:37 UTC) #48
charliea (OOO until 10-5)
https://codereview.chromium.org/2712163002/diff/170001/systrace/systrace/output_generator.py File systrace/systrace/output_generator.py (right): https://codereview.chromium.org/2712163002/diff/170001/systrace/systrace/output_generator.py#newcode38 systrace/systrace/output_generator.py:38: trace_data_builder.AsData().Serialize(output_file_name, 'Systrace') 'Systrace' should probably be a constant https://codereview.chromium.org/2712163002/diff/170001/systrace/systrace/output_generator.py#newcode52 ...
3 years, 9 months ago (2017-03-21 19:47:23 UTC) #49
Chris Craik
Couple minor nits, otherwise LGTM https://codereview.chromium.org/2712163002/diff/170001/systrace/systrace/output_generator.py File systrace/systrace/output_generator.py (right): https://codereview.chromium.org/2712163002/diff/170001/systrace/systrace/output_generator.py#newcode53 systrace/systrace/output_generator.py:53: if len(trace_results) > 2: ...
3 years, 9 months ago (2017-03-21 19:52:23 UTC) #50
rnephew (Reviews Here)
https://codereview.chromium.org/2712163002/diff/170001/systrace/systrace/output_generator.py File systrace/systrace/output_generator.py (right): https://codereview.chromium.org/2712163002/diff/170001/systrace/systrace/output_generator.py#newcode38 systrace/systrace/output_generator.py:38: trace_data_builder.AsData().Serialize(output_file_name, 'Systrace') On 2017/03/21 19:47:23, charliea wrote: > 'Systrace' ...
3 years, 9 months ago (2017-03-23 15:14:16 UTC) #52
Chris Craik
lgtm
3 years, 9 months ago (2017-03-23 16:40:27 UTC) #56
charliea (OOO until 10-5)
lgtm w/ comment Thanks for fixing this Randy! https://codereview.chromium.org/2712163002/diff/190001/systrace/systrace/output_generator.py File systrace/systrace/output_generator.py (right): https://codereview.chromium.org/2712163002/diff/190001/systrace/systrace/output_generator.py#newcode54 systrace/systrace/output_generator.py:54: # ...
3 years, 9 months ago (2017-03-23 18:32:32 UTC) #57
benm (inactive)
https://codereview.chromium.org/2712163002/diff/190001/systrace/systrace/output_generator.py File systrace/systrace/output_generator.py (right): https://codereview.chromium.org/2712163002/diff/190001/systrace/systrace/output_generator.py#newcode56 systrace/systrace/output_generator.py:56: if len(trace_results) > 2: Drive by with minimal context ...
3 years, 8 months ago (2017-03-28 13:29:33 UTC) #59
rnephew (Reviews Here)
https://codereview.chromium.org/2712163002/diff/190001/systrace/systrace/output_generator.py File systrace/systrace/output_generator.py (right): https://codereview.chromium.org/2712163002/diff/190001/systrace/systrace/output_generator.py#newcode54 systrace/systrace/output_generator.py:54: # TODO(rnephew): Remove old legacy code when java systrace ...
3 years, 8 months ago (2017-03-30 18:38:06 UTC) #60
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/2712163002/210001
3 years, 8 months ago (2017-03-30 19:08:46 UTC) #67
commit-bot: I haz the power
3 years, 8 months ago (2017-03-30 19:10:28 UTC) #70
Message was sent while issue was closed.
Committed patchset #9 (id:210001) as
https://chromium.googlesource.com/external/github.com/catapult-project/catapu...

Powered by Google App Engine
This is Rietveld 408576698