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

Issue 610793003: Add ratio calculation to take the ratio of two calculations. (Closed)

Created:
6 years, 2 months ago by tfarina
Modified:
6 years, 2 months ago
Reviewers:
jcgregorio
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/buildbot@master
Visibility:
Public.

Description

Add ratio function to calculate the ratio of two calculations. To test this: $ cd ~/golib/src/ $ go get -u -t skia.googlesource.com/buildbot.git/perf/go/... $ cd skia.googlesource.com/buildbot.git/perf/ $ make testgo BUG=None TEST=see above R=jcgregorio@google.com Committed: https://skia.googlesource.com/buildbot/+/27b13788268f622c7936e0e9591e09aa188a8e19

Patch Set 1 #

Patch Set 2 : TestRatio #

Total comments: 9

Patch Set 3 : more changes #

Patch Set 4 : for loop #

Patch Set 5 : add some traces to the test #

Total comments: 4

Patch Set 6 : ... #

Total comments: 15

Patch Set 7 : review #

Total comments: 6

Patch Set 8 : fix the index of tracesB - it just contains ONE element #

Patch Set 9 : add a divide by zero test case #

Patch Set 10 : check if the result of division is infinity - that can happen when you divide by zero #

Patch Set 11 : test the values coming from the result #

Patch Set 12 : remove debug code #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -0 lines) Patch
M perf/go/parser/funcs.go View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +35 lines, -0 lines 0 comments Download
M perf/go/parser/parser.go View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M perf/go/parser/parser_test.go View 1 2 3 4 5 6 7 8 9 10 1 chunk +21 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (1 generated)
jcgregorio
https://codereview.chromium.org/610793003/diff/20001/perf/go/parser/funcs.go File perf/go/parser/funcs.go (right): https://codereview.chromium.org/610793003/diff/20001/perf/go/parser/funcs.go#newcode186 perf/go/parser/funcs.go:186: traces, err := node.Args[0].Eval(ctx) Yes, you'll need to call ...
6 years, 2 months ago (2014-09-29 15:09:23 UTC) #1
tfarina
more doubts below. https://codereview.chromium.org/610793003/diff/20001/perf/go/parser/funcs.go File perf/go/parser/funcs.go (right): https://codereview.chromium.org/610793003/diff/20001/perf/go/parser/funcs.go#newcode195 perf/go/parser/funcs.go:195: ret := types.NewPerfTraceN(len(traces[0].Values)) Where the calc ...
6 years, 2 months ago (2014-09-30 13:35:15 UTC) #2
jcgregorio
https://codereview.chromium.org/610793003/diff/20001/perf/go/parser/funcs.go File perf/go/parser/funcs.go (right): https://codereview.chromium.org/610793003/diff/20001/perf/go/parser/funcs.go#newcode195 perf/go/parser/funcs.go:195: ret := types.NewPerfTraceN(len(traces[0].Values)) On 2014/09/30 13:35:14, tfarina wrote: > ...
6 years, 2 months ago (2014-09-30 14:59:03 UTC) #3
tfarina
More progress (but little). Not sure yet how to develop the for loop for the ...
6 years, 2 months ago (2014-10-01 02:30:16 UTC) #4
jcgregorio
https://codereview.chromium.org/610793003/diff/20001/perf/go/parser/funcs.go File perf/go/parser/funcs.go (right): https://codereview.chromium.org/610793003/diff/20001/perf/go/parser/funcs.go#newcode195 perf/go/parser/funcs.go:195: ret := types.NewPerfTraceN(len(traces[0].Values)) Yes, they will always have the ...
6 years, 2 months ago (2014-10-01 03:48:58 UTC) #5
tfarina
I will get back to this later tonight. Some notes for myself below. https://codereview.chromium.org/610793003/diff/80001/perf/go/parser/funcs.go File ...
6 years, 2 months ago (2014-10-16 17:42:31 UTC) #6
tfarina
Joe, could you take another look? https://codereview.chromium.org/610793003/diff/100001/perf/go/parser/funcs.go File perf/go/parser/funcs.go (right): https://codereview.chromium.org/610793003/diff/100001/perf/go/parser/funcs.go#newcode191 perf/go/parser/funcs.go:191: traces, err = ...
6 years, 2 months ago (2014-10-17 00:35:47 UTC) #7
jcgregorio
https://codereview.chromium.org/610793003/diff/100001/perf/go/parser/funcs.go File perf/go/parser/funcs.go (right): https://codereview.chromium.org/610793003/diff/100001/perf/go/parser/funcs.go#newcode186 perf/go/parser/funcs.go:186: traces, err := node.Args[0].Eval(ctx) tracesA, err := https://codereview.chromium.org/610793003/diff/100001/perf/go/parser/funcs.go#newcode191 perf/go/parser/funcs.go:191: ...
6 years, 2 months ago (2014-10-17 11:43:55 UTC) #8
tfarina
https://codereview.chromium.org/610793003/diff/100001/perf/go/parser/funcs.go File perf/go/parser/funcs.go (right): https://codereview.chromium.org/610793003/diff/100001/perf/go/parser/funcs.go#newcode186 perf/go/parser/funcs.go:186: traces, err := node.Args[0].Eval(ctx) On 2014/10/17 11:43:55, jcgregorio wrote: ...
6 years, 2 months ago (2014-10-17 21:14:23 UTC) #9
jcgregorio
https://codereview.chromium.org/610793003/diff/120001/perf/go/parser/funcs.go File perf/go/parser/funcs.go (right): https://codereview.chromium.org/610793003/diff/120001/perf/go/parser/funcs.go#newcode198 perf/go/parser/funcs.go:198: ret.Values[i] = tracesA[0].Values[i] / tracesB[1].Values[i] Either check for division ...
6 years, 2 months ago (2014-10-18 00:19:13 UTC) #10
tfarina
check if the result of division is infinity - that can happen when you divide ...
6 years, 2 months ago (2014-10-18 02:58:06 UTC) #11
tfarina
Joe, I think I addressed everything. 'make testgo' is passing now. I think it is ...
6 years, 2 months ago (2014-10-18 03:15:46 UTC) #12
jcgregorio
On 2014/10/18 03:15:46, tfarina wrote: > Joe, I think I addressed everything. 'make testgo' is ...
6 years, 2 months ago (2014-10-20 14:16:05 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/610793003/220001
6 years, 2 months ago (2014-10-20 14:36:25 UTC) #15
commit-bot: I haz the power
6 years, 2 months ago (2014-10-20 14:36:37 UTC) #16
Message was sent while issue was closed.
Committed patchset #12 (id:220001) as 27b13788268f622c7936e0e9591e09aa188a8e19

Powered by Google App Engine
This is Rietveld 408576698