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

Issue 10870039: Allow multiple performance values in _OutputPerfForStandaloneGraphing. (Closed)

Created:
8 years, 4 months ago by Dai Mikurube (NOT FULLTIME)
Modified:
8 years, 3 months ago
CC:
chromium-reviews, dennis_jeffrey, anantha, dyu1, Nirnimesh
Visibility:
Public.

Description

Allow multiple performance values in OutputPerfForStandaloneGraphing. BUG=122119 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=154247

Patch Set 1 #

Total comments: 9

Patch Set 2 : fixed the comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -14 lines) Patch
M chrome/test/functional/perf.py View 1 1 chunk +13 lines, -14 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Dai Mikurube (NOT FULLTIME)
Hi Nirnimesh, Sorry for my many review requests. Could you take a look? It is ...
8 years, 4 months ago (2012-08-23 10:48:36 UTC) #1
Dai Mikurube (NOT FULLTIME)
fyi, an example of multiple performance values at http://codereview.chromium.org/10871038/.
8 years, 4 months ago (2012-08-23 10:59:06 UTC) #2
Nirnimesh
I'd suggest waiting for Dennis to look at this CL. Unfotunately he's OOO for the ...
8 years, 4 months ago (2012-08-23 17:44:13 UTC) #3
Dai Mikurube (NOT FULLTIME)
On 2012/08/23 17:44:13, Nirnimesh wrote: > I'd suggest waiting for Dennis to look at this ...
8 years, 4 months ago (2012-08-24 02:49:39 UTC) #4
dennis_jeffrey
LGTM with a couple nits to address before submitting, and a longer FYI (no response ...
8 years, 3 months ago (2012-08-29 18:47:51 UTC) #5
Dai Mikurube (NOT FULLTIME)
Thanks for looking at it, Dennis. :) I'll be committing the change. http://codereview.chromium.org/10870039/diff/1/chrome/test/functional/perf.py File chrome/test/functional/perf.py ...
8 years, 3 months ago (2012-08-30 02:24:11 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmikurube@chromium.org/10870039/7001
8 years, 3 months ago (2012-08-30 02:24:22 UTC) #7
commit-bot: I haz the power
Try job failure for 10870039-7001 (retry) on win for step "compile" (clobber build). It's a ...
8 years, 3 months ago (2012-08-30 03:57:25 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmikurube@chromium.org/10870039/7001
8 years, 3 months ago (2012-08-30 11:37:56 UTC) #9
commit-bot: I haz the power
Try job failure for 10870039-7001 (retry) on linux_chromeos for step "browser_tests". It's a second try, ...
8 years, 3 months ago (2012-08-30 15:59:05 UTC) #10
dennis_jeffrey
A few replies to your questions. I'll go ahead and click the commit box again ...
8 years, 3 months ago (2012-08-30 17:13:23 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmikurube@chromium.org/10870039/7001
8 years, 3 months ago (2012-08-30 17:15:14 UTC) #12
commit-bot: I haz the power
Change committed as 154247
8 years, 3 months ago (2012-08-30 20:14:12 UTC) #13
Dai Mikurube (NOT FULLTIME)
8 years, 3 months ago (2012-09-04 04:32:58 UTC) #14
Thanks for checking "Commit", Dennis!

http://codereview.chromium.org/10870039/diff/1/chrome/test/functional/perf.py
File chrome/test/functional/perf.py (right):

http://codereview.chromium.org/10870039/diff/1/chrome/test/functional/perf.py...
chrome/test/functional/perf.py:350: if seen_key in self._seen_graph_lines:
On 2012/08/30 17:13:23, dennis_jeffrey wrote:
> On 2012/08/30 02:24:11, Dai Mikurube wrote:
> > On 2012/08/29 18:47:51, dennis_jeffrey wrote:
> > > FYI: The reason for "seen_key" and "self._seen_graph_lines" is to allow
> > > long-running tests (like Chrome Endure tests) to continually invoke the
> > current
> > > function (OutputPerfForStandaloneGraphing) during a test run, and each
time
> > the
> > > function is invoked, *append* new results to an existing results list.
> > > 
> > > For example, suppose we're periodically measuring DOM node count during a
> long
> > > test run.  The very first time we invoke OutputPerfForStandaloneGraphing,
we
> > > should create a new JSON line for the output file.  But each time we
> > > subsequently invoke OutputPerfForStandaloneGraphing for the same metric in
> the
> > > same test run, we need to know that we have to *append* to the existing
JSON
> > > line, rather than creating a new JSON line.  So that's why I associate
each
> > > metric with a unique key (called "seen_key"), and I store all the keys
we've
> > > already seen in the dictionary "self._seen_graph_lines".
> > 
> > Thanks for the description.  Hmm, my question is: isn't it enough to compare
> > |revision| with the top line in -summary.dat?
> > 
> > I guess it would have a same effect.  If seen_key is found, it has been
> already
> > depended on the existing_lines[0].
> 
> I am not totally clear on exactly what you mean, but you may be correct that
we
> can simplify the code here.  If you'd like, feel free to make the change
itself
> and send me a new code review, and then I can check it out.  By looking at the
> code it'll be easier for me to see exactly what you'd like to do :-)

Ok, I'll try it when I have time.  Thanks. :)

Powered by Google App Engine
This is Rietveld 408576698