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

Issue 22492004: Move memory-related histogram data collection to metrics/memory.py (Closed)

Created:
7 years, 4 months ago by qyearsley
Modified:
7 years, 4 months ago
Reviewers:
nduca, tonyg
CC:
chromium-reviews, chrome-speed-team+watch_google.com, tdanderson
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Move memory-related histogram data collection to metrics/memory.py BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=216856

Patch Set 1 #

Total comments: 5

Patch Set 2 : Move adding of memory results to after page time results #

Patch Set 3 : Fixed small mistake (MEMORY_HISTOGRAM should be RENDERER_HISTOGRAM) #

Patch Set 4 : Revert #

Patch Set 5 : Fix bug caused by not checking whether there is histogram data available #

Patch Set 6 : Minor change (to make what is happening more explicit) #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -3 lines) Patch
M tools/perf/metrics/histogram.py View 1 2 3 4 5 1 chunk +4 lines, -2 lines 0 comments Download
M tools/perf/metrics/memory.py View 1 2 3 4 5 2 chunks +8 lines, -1 line 3 comments Download

Messages

Total messages: 17 (0 generated)
qyearsley
Because the HistogramMetric class was only used for collecting memory-related metrics, and it was only ...
7 years, 4 months ago (2013-08-08 17:35:52 UTC) #1
tonyg
lgtm This is really awesome stuff. Just one comment that needs to be addressed before ...
7 years, 4 months ago (2013-08-09 01:43:44 UTC) #2
nduca
lgtm with tonyg happy thank you so much
7 years, 4 months ago (2013-08-09 09:39:38 UTC) #3
qyearsley
https://codereview.chromium.org/22492004/diff/1/tools/perf/measurements/page_cycler.py File tools/perf/measurements/page_cycler.py (right): https://codereview.chromium.org/22492004/diff/1/tools/perf/measurements/page_cycler.py#newcode104 tools/perf/measurements/page_cycler.py:104: self._memory_metric.AddResults(tab, results) On 2013/08/09 01:43:44, tonyg wrote: > I ...
7 years, 4 months ago (2013-08-09 16:43:15 UTC) #4
tonyg
On 2013/08/09 16:43:15, qyearsley wrote: > https://codereview.chromium.org/22492004/diff/1/tools/perf/measurements/page_cycler.py > File tools/perf/measurements/page_cycler.py (right): > > https://codereview.chromium.org/22492004/diff/1/tools/perf/measurements/page_cycler.py#newcode104 > ...
7 years, 4 months ago (2013-08-09 16:48:42 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qyearsley@chromium.org/22492004/10001
7 years, 4 months ago (2013-08-09 17:20:45 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qyearsley@chromium.org/22492004/27001
7 years, 4 months ago (2013-08-09 18:18:13 UTC) #7
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=186073
7 years, 4 months ago (2013-08-10 02:58:20 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qyearsley@chromium.org/22492004/27001
7 years, 4 months ago (2013-08-10 05:32:31 UTC) #9
commit-bot: I haz the power
Change committed as 216856
7 years, 4 months ago (2013-08-10 14:58:45 UTC) #10
f(malita)
On 2013/08/10 14:58:45, I haz the power (commit-bot) wrote: > Change committed as 216856 This ...
7 years, 4 months ago (2013-08-10 18:17:02 UTC) #11
tonyg
Please feel free to revert to fix the build. We can fix properly on Monday. ...
7 years, 4 months ago (2013-08-10 18:33:53 UTC) #12
qyearsley
I'm having some trouble reverting; I don't know yet what the proper sequence of steps ...
7 years, 4 months ago (2013-08-11 08:09:07 UTC) #13
fmalita_google_do_not_use
On 2013/08/11 08:09:07, qyearsley wrote: > I'm having some trouble reverting; I don't know yet ...
7 years, 4 months ago (2013-08-11 16:12:20 UTC) #14
f(malita)
Reverted: https://src.chromium.org/viewvc/chrome?revision=216971&view=revision
7 years, 4 months ago (2013-08-12 11:17:24 UTC) #15
qyearsley
On 2013/08/12 11:17:24, Florin Malita wrote: > Reverted: https://src.chromium.org/viewvc/chrome?revision=216971&view=revision There were two bugs that I ...
7 years, 4 months ago (2013-08-12 20:29:40 UTC) #16
qyearsley
7 years, 4 months ago (2013-08-12 20:57:47 UTC) #17
Message was sent while issue was closed.
https://codereview.chromium.org/22492004/diff/57001/tools/perf/metrics/memory.py
File tools/perf/metrics/memory.py (right):

https://codereview.chromium.org/22492004/diff/57001/tools/perf/metrics/memory...
tools/perf/metrics/memory.py:44: # Histogram data may not be available
Not sure if it's best not to repeat this comment below, but it seems that
there's no harm in it.

https://codereview.chromium.org/22492004/diff/57001/tools/perf/metrics/memory...
tools/perf/metrics/memory.py:61: self._histogram_delta_values[h['name']] =
histogram.SubtractHistogram(
I forgot to use self._histogram_delta_values as a dictionary here before.

https://codereview.chromium.org/22492004/diff/57001/tools/perf/metrics/memory...
tools/perf/metrics/memory.py:62: histogram_data,
self._histogram_start_values[h['name']])
Here (and in AddResults) I'm assuming that if histogram data was set before for
a particular histogram name, then histogram.GetHistogramData will return new
histogram data; I think this is a reasonable assumption.

Powered by Google App Engine
This is Rietveld 408576698