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

Issue 121403002: Have pretty_print.py find histograms.xml. (Closed)

Created:
6 years, 12 months ago by gavinp
Modified:
6 years, 11 months ago
Reviewers:
Ilya Sherman
CC:
chromium-reviews, Ilya Sherman, jar (doing other things), asvitkine+watch_chromium.org, Alexei Svitkine (slow)
Visibility:
Public.

Description

Have pretty_print.py find histograms.xml. Whenever I need to pretty print histograms.xml, I always forget that it wants to be run from the directory containing histograms.xml. This CL fixes that, by having the tool look for the directory from which it's running. R=isherman@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=243267

Patch Set 1 #

Patch Set 2 : remediate #

Total comments: 4

Patch Set 3 : clear to land #

Patch Set 4 : fix typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -10 lines) Patch
M tools/metrics/histograms/pretty_print.py View 1 2 3 4 chunks +22 lines, -10 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
gavinp
asvitkine: PTAL.
6 years, 12 months ago (2013-12-26 21:02:56 UTC) #1
Ilya Sherman
Thanks for the cleanup! Please use path_utils.ScriptDir() rather than re-implementing that functionality yourself. Also, please ...
6 years, 12 months ago (2013-12-26 21:41:56 UTC) #2
gavinp
Ilya, How do you like this? I am a bit amused that in order to ...
6 years, 12 months ago (2013-12-27 14:05:24 UTC) #3
Ilya Sherman
Thanks, Gavin! LGTM % nit. Also, happy birthday :) [Thanks, slightly creepy internal tools...] https://codereview.chromium.org/121403002/diff/40001/tools/metrics/histograms/pretty_print.py ...
6 years, 12 months ago (2013-12-27 21:48:05 UTC) #4
gavinp
Thanks for the birthday wishes. I've updated this per review, and I'll CQ it later ...
6 years, 11 months ago (2014-01-06 17:36:06 UTC) #5
Ilya Sherman
https://codereview.chromium.org/121403002/diff/40001/tools/metrics/histograms/pretty_print.py File tools/metrics/histograms/pretty_print.py (right): https://codereview.chromium.org/121403002/diff/40001/tools/metrics/histograms/pretty_print.py#newcode356 tools/metrics/histograms/pretty_print.py:356: os.path.join(script_dir, 'histograms.before.pretty-print.xml')) On 2014/01/06 17:36:07, gavinp wrote: > On ...
6 years, 11 months ago (2014-01-06 23:22:36 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gavinp@chromium.org/121403002/160001
6 years, 11 months ago (2014-01-06 23:27:16 UTC) #7
commit-bot: I haz the power
6 years, 11 months ago (2014-01-07 11:55:07 UTC) #8
Message was sent while issue was closed.
Change committed as 243267

Powered by Google App Engine
This is Rietveld 408576698