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

Issue 12381088: Codes for writing bench data to appengine datastore. (Closed)

Created:
7 years, 9 months ago by benchen
Modified:
7 years, 9 months ago
CC:
skia-review_googlegroups.com, skiabot_google.com, edisonn
Visibility:
Public.

Description

Codes for writing bench data to appengine datastore. To activate, add flag "-a https://skiadash.appspot.com/add_point" or URL to other chrome-perf app instances. Otherwise behavior will be same as before. Committed: https://code.google.com/p/skia/source/detail?r=8020

Patch Set 1 #

Total comments: 10

Patch Set 2 : #

Total comments: 22

Patch Set 3 : #

Total comments: 8

Patch Set 4 : #

Total comments: 3

Patch Set 5 : #

Total comments: 4

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -11 lines) Patch
M bench/bench_graph_svg.py View 1 2 3 4 5 8 chunks +88 lines, -11 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
benchen
I plan to commit this first, then ask for Eric's help on turning it on ...
7 years, 9 months ago (2013-03-04 21:19:10 UTC) #1
borenet
Adding a few more reviewers who know this code better than I. https://codereview.chromium.org/12381088/diff/1/bench/bench_graph_svg.py File bench/bench_graph_svg.py ...
7 years, 9 months ago (2013-03-04 21:32:15 UTC) #2
bungeman-skia
On 2013/03/04 21:19:10, benchen wrote: > I plan to commit this first, then ask for ...
7 years, 9 months ago (2013-03-04 21:39:42 UTC) #3
borenet
On 2013/03/04 21:39:42, bungeman1 wrote: > On 2013/03/04 21:19:10, benchen wrote: > > I plan ...
7 years, 9 months ago (2013-03-04 21:42:15 UTC) #4
rmistry
https://codereview.chromium.org/12381088/diff/1/bench/bench_graph_svg.py File bench/bench_graph_svg.py (right): https://codereview.chromium.org/12381088/diff/1/bench/bench_graph_svg.py#newcode32 bench/bench_graph_svg.py:32: print ' Example: "https://skiadash.appspot.com/add_point".' This is going to upload ...
7 years, 9 months ago (2013-03-04 21:49:35 UTC) #5
benchen
The reason to use this script is that it has the raw logs parsing step, ...
7 years, 9 months ago (2013-03-04 21:51:14 UTC) #6
benchen
https://codereview.chromium.org/12381088/diff/1/bench/bench_graph_svg.py File bench/bench_graph_svg.py (right): https://codereview.chromium.org/12381088/diff/1/bench/bench_graph_svg.py#newcode32 bench/bench_graph_svg.py:32: print ' Example: "https://skiadash.appspot.com/add_point".' The SQL DB solution is ...
7 years, 9 months ago (2013-03-04 21:59:18 UTC) #7
epoger
https://codereview.chromium.org/12381088/diff/6001/bench/bench_graph_svg.py File bench/bench_graph_svg.py (right): https://codereview.chromium.org/12381088/diff/6001/bench/bench_graph_svg.py#newcode12 bench/bench_graph_svg.py:12: import httplib Please put imports in alpha order https://codereview.chromium.org/12381088/diff/6001/bench/bench_graph_svg.py#newcode26 ...
7 years, 9 months ago (2013-03-05 18:38:52 UTC) #8
epoger
On 2013/03/04 21:39:42, bungeman1 wrote: > As a general comment, what is any of this ...
7 years, 9 months ago (2013-03-05 18:43:37 UTC) #9
benchen
That's right Elliot. At the current stage I think this is the most convenient way ...
7 years, 9 months ago (2013-03-05 18:47:57 UTC) #10
benchen
Thank you Elliot. Please take another look. I've also added 172.29.92.245 to the add_point whitelist, ...
7 years, 9 months ago (2013-03-05 20:52:53 UTC) #11
epoger
https://codereview.chromium.org/12381088/diff/6001/bench/bench_graph_svg.py File bench/bench_graph_svg.py (right): https://codereview.chromium.org/12381088/diff/6001/bench/bench_graph_svg.py#newcode203 bench/bench_graph_svg.py:203: ({int:[BenchDataPoints]}, {str:str}, str?, str?, str?) What this means: INPUT ...
7 years, 9 months ago (2013-03-06 17:17:22 UTC) #12
benchen
Thank you Elliot! I've switched to use the Label object which is much cleaner than ...
7 years, 9 months ago (2013-03-06 18:52:37 UTC) #13
bungeman-skia
https://codereview.chromium.org/12381088/diff/16001/bench/bench_graph_svg.py File bench/bench_graph_svg.py (right): https://codereview.chromium.org/12381088/diff/16001/bench/bench_graph_svg.py#newcode214 bench/bench_graph_svg.py:214: INPUT parameters of the function are: If you're going ...
7 years, 9 months ago (2013-03-06 19:26:57 UTC) #14
epoger
LGTM assuming a couple of cleanups as described below https://codereview.chromium.org/12381088/diff/16001/bench/bench_graph_svg.py File bench/bench_graph_svg.py (right): https://codereview.chromium.org/12381088/diff/16001/bench/bench_graph_svg.py#newcode214 bench/bench_graph_svg.py:214: ...
7 years, 9 months ago (2013-03-07 16:56:46 UTC) #15
benchen
7 years, 9 months ago (2013-03-07 17:13:27 UTC) #16
Message was sent while issue was closed.
Thanks Elliot. All done. Committed rev 8020. Now let's see how it works.

https://codereview.chromium.org/12381088/diff/16001/bench/bench_graph_svg.py
File bench/bench_graph_svg.py (right):

https://codereview.chromium.org/12381088/diff/16001/bench/bench_graph_svg.py#...
bench/bench_graph_svg.py:214: INPUT parameters of the function are:
On 2013/03/07 16:56:46, epoger wrote:
> On 2013/03/06 19:26:57, bungeman1 wrote:
> > If you're going to make this verbose, at least do it like the python style
> > guide.
> 
> Now, now, bungeman.  Let he who has documented in accordance with the python
> style guide cast the first stone.  It's not clear to me why "terse and not in
> accordance" is preferable to "verbose and not in accordance".
> 
> Having said that... yes, benchen, please use the docstring format as in
> https://www.corp.google.com/eng/doc/pyguide.xml#Comments , like so...
> 
> """Converts revision data into a dictionary of line data.
> 
> Args:
>   revision_data_points: a dictionary with integer keys (revision #) and a list
>       of bench data points as values
>   settings: a dictionary of setting names to values
> ...

Done.

https://codereview.chromium.org/12381088/diff/14002/bench/bench_graph_svg.py
File bench/bench_graph_svg.py (right):

https://codereview.chromium.org/12381088/diff/14002/bench/bench_graph_svg.py#...
bench/bench_graph_svg.py:413: for label in line_data_dict:
On 2013/03/07 16:56:46, epoger wrote:
> please change this to:
> 
> for label in line_data_dict.iterkeys():
> 
> ...just to make it clearer that it is iterating over the dictionary *keys*. 
> Results should be the same.

Done.

https://codereview.chromium.org/12381088/diff/14002/bench/bench_graph_svg.py#...
bench/bench_graph_svg.py:418: rev, val = line_data_dict[label][-1]
On 2013/03/07 16:56:46, epoger wrote:
> So I guess the assumption here is that newest_revision is >= the revision of
the
> last data point we have for each line?  Seems fair, although I could imagine
> someone trying to call this with a different revision # and being suprised to
> get nothing back.
> 
> Maybe add a comment like this...
> 
> # This assumes that newest_revision is >= the revision of
> # the last data point we have for each line.

Done.

Powered by Google App Engine
This is Rietveld 408576698