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

Issue 2519803002: Make generate_perf_json.py work regardless of starting working directory (Closed)

Created:
4 years, 1 month ago by alancutter (OOO until 2018)
Modified:
4 years ago
Reviewers:
dtu, eyaich1
CC:
chromium-reviews, telemetry-reviews_chromium.org, eyaich1
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make generate_perf_json.py work regardless of starting working directory This patch changes generate_perf_json.py such that you are not required to cd into tools/perf to be able to run it. BUG=667435 Committed: https://crrev.com/83e8ca3114f774182150be1bd2e4d85fd0b2c7ec Cr-Commit-Position: refs/heads/master@{#434166}

Patch Set 1 #

Patch Set 2 : Simplify #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -4 lines) Patch
M tools/perf/generate_perf_json.py View 1 2 chunks +7 lines, -4 lines 0 comments Download

Messages

Total messages: 22 (10 generated)
alancutter (OOO until 2018)
4 years, 1 month ago (2016-11-21 00:56:46 UTC) #2
eyaich1
lgtm thanks for doing that!
4 years, 1 month ago (2016-11-21 13:12:13 UTC) #5
sullivan
On 2016/11/21 13:12:13, eyaich1 wrote: > lgtm > > thanks for doing that! (dtu is ...
4 years, 1 month ago (2016-11-21 14:09:02 UTC) #6
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/2519803002/20001
4 years, 1 month ago (2016-11-21 22:22:06 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/309856)
4 years, 1 month ago (2016-11-21 22:33:03 UTC) #11
alancutter (OOO until 2018)
On 2016/11/21 at 22:33:03, commit-bot wrote: > Try jobs failed on following builders: > chromium_presubmit ...
4 years, 1 month ago (2016-11-21 22:38:21 UTC) #12
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/2519803002/20001
4 years ago (2016-11-23 13:53:56 UTC) #14
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-11-23 14:53:47 UTC) #17
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/83e8ca3114f774182150be1bd2e4d85fd0b2c7ec Cr-Commit-Position: refs/heads/master@{#434166}
4 years ago (2016-11-23 14:57:23 UTC) #19
dtu
Looks kind of hacky. The goal is to be agnostic to cwd and the fix ...
4 years ago (2016-12-01 01:43:18 UTC) #20
alancutter (OOO until 2018)
On 2016/12/01 at 01:43:18, dtu wrote: > Looks kind of hacky. The goal is to ...
4 years ago (2016-12-01 02:31:25 UTC) #21
dtu
4 years ago (2016-12-01 02:59:15 UTC) #22
Message was sent while issue was closed.
On 2016/12/01 02:31:25, alancutter wrote:
> On 2016/12/01 at 01:43:18, dtu wrote:
> > Looks kind of hacky. The goal is to be agnostic to cwd and the fix is to
> introduce cwd logic into the script?
> > 
> > I think the right fix would be to modify line 558.
> > with open('desktop_benchmark_avg_times.json') as f:
> > 
> > timing_file_path = os.path.join(os.path.dirname(os.path.abspath(__file__)),
> 'desktop_benchmark_avg_times.json')
> > with open(timing_file_path) as f:
> 
> WDTY of having a src_dir() function instead?

Sounds good :)

Powered by Google App Engine
This is Rietveld 408576698