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

Issue 920523002: [Telemetry] Reduce memory usage in presence of TraceValues (Closed)

Created:
5 years, 10 months ago by eakuefner
Modified:
5 years, 10 months ago
Reviewers:
picksi, nednguyen, David Yen
CC:
chromium-reviews, telemetry-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Telemetry] Reduce memory usage in presence of TraceValues Previously, creating a TraceValue would store the associated trace_data in memory and defer serialization until needed. In this CL, the trace_data is serialized right away into a temporary file to prevent it from being stored in memory. BUG=457385 Committed: https://crrev.com/fb1593148142ed2728485b12461cfd8d1fb68da9 Cr-Commit-Position: refs/heads/master@{#317106}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Address Ned's comment #

Total comments: 2

Patch Set 3 : New approach #

Total comments: 14

Patch Set 4 : Publish changes to switch machines #

Patch Set 5 : Address Ned's comments #

Total comments: 7

Patch Set 6 : Address Ned's comments and fix bad logic #

Total comments: 10

Patch Set 7 : Address Ned's comments #

Total comments: 2

Patch Set 8 : Implement cleaned_up in terms of _temp_file #

Patch Set 9 : rebase -_- #

Unified diffs Side-by-side diffs Delta from patch set Stats (+102 lines, -45 lines) Patch
M tools/telemetry/telemetry/benchmark.py View 1 2 3 4 5 6 7 8 1 chunk +16 lines, -16 lines 0 comments Download
M tools/telemetry/telemetry/results/page_test_results.py View 1 2 3 4 5 6 7 8 1 chunk +14 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/results/page_test_results_unittest.py View 1 2 3 4 5 6 7 8 2 chunks +33 lines, -1 line 0 comments Download
M tools/telemetry/telemetry/value/trace.py View 1 2 3 4 5 6 7 6 chunks +34 lines, -14 lines 0 comments Download
M tools/telemetry/telemetry/value/trace_unittest.py View 1 2 1 chunk +5 lines, -14 lines 0 comments Download

Messages

Total messages: 40 (8 generated)
eakuefner
Hi Ned, This patch makes it so that serialization of TraceValues is no longer deferred. ...
5 years, 10 months ago (2015-02-11 20:15:47 UTC) #2
nednguyen
Hi David, can you patch this and do your memory benchmark again?
5 years, 10 months ago (2015-02-11 20:49:47 UTC) #4
David Yen
On 2015/02/11 20:49:47, nednguyen wrote: > Hi David, can you patch this and do your ...
5 years, 10 months ago (2015-02-11 23:29:35 UTC) #5
nednguyen
On 2015/02/11 23:29:35, David Yen wrote: > On 2015/02/11 20:49:47, nednguyen wrote: > > Hi ...
5 years, 10 months ago (2015-02-11 23:38:40 UTC) #6
eakuefner
On 2015/02/11 at 23:38:40, nednguyen wrote: > On 2015/02/11 23:29:35, David Yen wrote: > > ...
5 years, 10 months ago (2015-02-12 19:54:50 UTC) #7
nednguyen
On 2015/02/12 19:54:50, eakuefner wrote: > On 2015/02/11 at 23:38:40, nednguyen wrote: > > On ...
5 years, 10 months ago (2015-02-12 20:55:44 UTC) #8
nednguyen
https://codereview.chromium.org/920523002/diff/1/tools/telemetry/telemetry/value/trace.py File tools/telemetry/telemetry/value/trace.py (right): https://codereview.chromium.org/920523002/diff/1/tools/telemetry/telemetry/value/trace.py#newcode123 tools/telemetry/telemetry/value/trace.py:123: os.remove(self._temp_file.GetAbsPath()) Err, this is not good. It mean that ...
5 years, 10 months ago (2015-02-12 20:59:21 UTC) #9
nednguyen
On 2015/02/12 20:59:21, nednguyen wrote: > https://codereview.chromium.org/920523002/diff/1/tools/telemetry/telemetry/value/trace.py > File tools/telemetry/telemetry/value/trace.py (right): > > https://codereview.chromium.org/920523002/diff/1/tools/telemetry/telemetry/value/trace.py#newcode123 > ...
5 years, 10 months ago (2015-02-12 21:01:45 UTC) #10
eakuefner
Ned, PTAL. I've removed the logic that deals with trying to delete the tempfile from ...
5 years, 10 months ago (2015-02-12 23:28:37 UTC) #12
eakuefner
On 2015/02/12 at 23:28:37, eakuefner wrote: > Ned, PTAL. I've removed the logic that deals ...
5 years, 10 months ago (2015-02-12 23:38:51 UTC) #13
nednguyen
https://codereview.chromium.org/920523002/diff/20001/tools/telemetry/telemetry/value/trace.py File tools/telemetry/telemetry/value/trace.py (right): https://codereview.chromium.org/920523002/diff/20001/tools/telemetry/telemetry/value/trace.py#newcode38 tools/telemetry/telemetry/value/trace.py:38: os.remove(self._temp_file.GetAbsPath()) Is this guaranteed to be called at the ...
5 years, 10 months ago (2015-02-12 23:49:52 UTC) #14
eakuefner
https://codereview.chromium.org/920523002/diff/20001/tools/telemetry/telemetry/value/trace.py File tools/telemetry/telemetry/value/trace.py (right): https://codereview.chromium.org/920523002/diff/20001/tools/telemetry/telemetry/value/trace.py#newcode38 tools/telemetry/telemetry/value/trace.py:38: os.remove(self._temp_file.GetAbsPath()) On 2015/02/12 23:49:52, nednguyen wrote: > Is this ...
5 years, 10 months ago (2015-02-12 23:55:16 UTC) #15
eakuefner
Ned, PTAL. I call page_test_results's CleanUp explicitly in JSON and Chart JSON output formatters but ...
5 years, 10 months ago (2015-02-13 22:45:26 UTC) #16
eakuefner
On 2015/02/13 at 22:45:26, eakuefner wrote: > Ned, PTAL. I call page_test_results's CleanUp explicitly in ...
5 years, 10 months ago (2015-02-13 23:12:53 UTC) #17
nednguyen
I expect the clean_up to be called in benchmark.Run() method (https://code.google.com/p/chromium/codesearch#chromium/src/tools/telemetry/telemetry/benchmark.py&l=192) instead of those chart ...
5 years, 10 months ago (2015-02-13 23:14:55 UTC) #18
picksi
FYI A new page set of 'pathological' android sites (that I added) has been crashing ...
5 years, 10 months ago (2015-02-16 14:42:04 UTC) #20
nednguyen
On 2015/02/16 14:42:04, picksi wrote: > FYI A new page set of 'pathological' android sites ...
5 years, 10 months ago (2015-02-16 16:05:06 UTC) #21
picksi
With my Sheriff on, is this related to the failure here: http://build.chromium.org/p/chromium.perf/builders/Android%20Nexus5%20Perf/builds/3590/steps/dromaeo.domcoremodify/logs/stdio#failure1 The log says: ...
5 years, 10 months ago (2015-02-17 12:05:08 UTC) #22
picksi
With regard to the above issue, this bot is flaky and has subsequently gone green ...
5 years, 10 months ago (2015-02-17 14:00:20 UTC) #23
eakuefner
https://codereview.chromium.org/920523002/diff/40001/tools/telemetry/telemetry/results/page_test_results.py File tools/telemetry/telemetry/results/page_test_results.py (right): https://codereview.chromium.org/920523002/diff/40001/tools/telemetry/telemetry/results/page_test_results.py#newcode133 tools/telemetry/telemetry/results/page_test_results.py:133: v.CleanUp() On 2015/02/13 at 23:14:54, nednguyen wrote: > Remove ...
5 years, 10 months ago (2015-02-18 00:07:49 UTC) #24
eakuefner
Oh, and: On 2015/02/13 at 23:14:55, nednguyen wrote: > I expect the clean_up to be ...
5 years, 10 months ago (2015-02-18 00:08:31 UTC) #25
nednguyen
https://codereview.chromium.org/920523002/diff/80001/tools/telemetry/telemetry/benchmark.py File tools/telemetry/telemetry/benchmark.py (right): https://codereview.chromium.org/920523002/diff/80001/tools/telemetry/telemetry/benchmark.py#newcode193 tools/telemetry/telemetry/benchmark.py:193: results.CleanUp() Why not use the with pattern? https://codereview.chromium.org/920523002/diff/80001/tools/telemetry/telemetry/results/page_test_results.py File ...
5 years, 10 months ago (2015-02-18 00:17:49 UTC) #26
eakuefner
https://codereview.chromium.org/920523002/diff/80001/tools/telemetry/telemetry/benchmark.py File tools/telemetry/telemetry/benchmark.py (right): https://codereview.chromium.org/920523002/diff/80001/tools/telemetry/telemetry/benchmark.py#newcode193 tools/telemetry/telemetry/benchmark.py:193: results.CleanUp() On 2015/02/18 00:17:49, nednguyen wrote: > Why not ...
5 years, 10 months ago (2015-02-18 18:27:17 UTC) #27
nednguyen
https://codereview.chromium.org/920523002/diff/80001/tools/telemetry/telemetry/benchmark.py File tools/telemetry/telemetry/benchmark.py (right): https://codereview.chromium.org/920523002/diff/80001/tools/telemetry/telemetry/benchmark.py#newcode193 tools/telemetry/telemetry/benchmark.py:193: results.CleanUp() On 2015/02/18 18:27:16, eakuefner wrote: > On 2015/02/18 ...
5 years, 10 months ago (2015-02-18 18:35:59 UTC) #28
eakuefner
https://codereview.chromium.org/920523002/diff/100001/tools/telemetry/telemetry/results/page_test_results.py File tools/telemetry/telemetry/results/page_test_results.py (right): https://codereview.chromium.org/920523002/diff/100001/tools/telemetry/telemetry/results/page_test_results.py#newcode136 tools/telemetry/telemetry/results/page_test_results.py:136: run.values.remove(v) On 2015/02/18 18:35:59, nednguyen wrote: > Why do ...
5 years, 10 months ago (2015-02-18 20:41:04 UTC) #29
nednguyen
lgtm https://codereview.chromium.org/920523002/diff/120001/tools/telemetry/telemetry/value/trace.py File tools/telemetry/telemetry/value/trace.py (right): https://codereview.chromium.org/920523002/diff/120001/tools/telemetry/telemetry/value/trace.py#newcode77 tools/telemetry/telemetry/value/trace.py:77: return self._cleaned_up Nit: "return self._temp_file is None" instead?
5 years, 10 months ago (2015-02-18 22:46:39 UTC) #30
eakuefner
https://codereview.chromium.org/920523002/diff/120001/tools/telemetry/telemetry/value/trace.py File tools/telemetry/telemetry/value/trace.py (right): https://codereview.chromium.org/920523002/diff/120001/tools/telemetry/telemetry/value/trace.py#newcode77 tools/telemetry/telemetry/value/trace.py:77: return self._cleaned_up On 2015/02/18 22:46:39, nednguyen wrote: > Nit: ...
5 years, 10 months ago (2015-02-19 18:33:58 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/920523002/140001
5 years, 10 months ago (2015-02-19 18:35:04 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator/builds/60483)
5 years, 10 months ago (2015-02-19 18:38:41 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/920523002/160001
5 years, 10 months ago (2015-02-19 18:45:23 UTC) #38
commit-bot: I haz the power
Committed patchset #9 (id:160001)
5 years, 10 months ago (2015-02-19 19:47:32 UTC) #39
commit-bot: I haz the power
5 years, 10 months ago (2015-02-19 19:48:30 UTC) #40
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/fb1593148142ed2728485b12461cfd8d1fb68da9
Cr-Commit-Position: refs/heads/master@{#317106}

Powered by Google App Engine
This is Rietveld 408576698