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

Issue 15093008: Telemetry: integrates memory_measurement with TCMalloc dumps (Closed)

Created:
7 years, 7 months ago by bulach
Modified:
7 years, 7 months ago
CC:
chromium-reviews, chrome-speed-team+watch_google.com, telemetry+watch_chromium.org
Visibility:
Public.

Description

Telemetry: integrates memory_measurement with TCMalloc dumps At the end of each memory_measurement test, force TCMalloc to dump the memory maps, and collect all the files. BUG=231800 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=201953

Patch Set 1 : Patch #

Total comments: 4

Patch Set 2 : comments #

Total comments: 12

Patch Set 3 : TCMallocHeapProfiler #

Total comments: 31

Patch Set 4 : comments #

Total comments: 2

Patch Set 5 : More comments #

Total comments: 2

Patch Set 6 : browser.is_profiler_active #

Patch Set 7 : Comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+135 lines, -1 line) Patch
M tools/perf/perf_tools/memory_measurement.py View 1 2 3 4 5 1 chunk +12 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/core/browser.py View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/core/platform/profiler/profiler_finder.py View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
A tools/telemetry/telemetry/core/platform/profiler/tcmalloc_heap_profiler.py View 1 2 3 4 5 6 1 chunk +117 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
bulach
dai: this would allow telemetry to drive tests and fetch dumps that can then be ...
7 years, 7 months ago (2013-05-14 09:34:40 UTC) #1
Dai Mikurube (NOT FULLTIME)
Thanks for working on it! Some comments: https://codereview.chromium.org/15093008/diff/2001/tools/telemetry/telemetry/core/platform/profiler/tcmalloc_profiler.py File tools/telemetry/telemetry/core/platform/profiler/tcmalloc_profiler.py (right): https://codereview.chromium.org/15093008/diff/2001/tools/telemetry/telemetry/core/platform/profiler/tcmalloc_profiler.py#newcode13 tools/telemetry/telemetry/core/platform/profiler/tcmalloc_profiler.py:13: 'HEAP_PROFILE_TIME_INTERVAL': ('heapprof.timeinterval', ...
7 years, 7 months ago (2013-05-14 10:47:55 UTC) #2
bulach
thanks dai! comments addressed, another look please? https://codereview.chromium.org/15093008/diff/2001/tools/telemetry/telemetry/core/platform/profiler/tcmalloc_profiler.py File tools/telemetry/telemetry/core/platform/profiler/tcmalloc_profiler.py (right): https://codereview.chromium.org/15093008/diff/2001/tools/telemetry/telemetry/core/platform/profiler/tcmalloc_profiler.py#newcode13 tools/telemetry/telemetry/core/platform/profiler/tcmalloc_profiler.py:13: 'HEAP_PROFILE_TIME_INTERVAL': ('heapprof.timeinterval', ...
7 years, 7 months ago (2013-05-14 13:10:54 UTC) #3
Dai Mikurube (NOT FULLTIME)
the latest version not uploaded yet? ;)
7 years, 7 months ago (2013-05-14 14:00:02 UTC) #4
Dai Mikurube (NOT FULLTIME)
On 2013/05/14 14:00:02, Dai Mikurube wrote: > the latest version not uploaded yet? ;) also, ...
7 years, 7 months ago (2013-05-14 14:01:12 UTC) #5
bulach
uploaded now, sorry for the delay :)
7 years, 7 months ago (2013-05-14 14:19:21 UTC) #6
Dai Mikurube (NOT FULLTIME)
Sorry for later additional comments. https://codereview.chromium.org/15093008/diff/10001/tools/perf/perf_tools/memory_measurement.py File tools/perf/perf_tools/memory_measurement.py (right): https://codereview.chromium.org/15093008/diff/10001/tools/perf/perf_tools/memory_measurement.py#newcode46 tools/perf/perf_tools/memory_measurement.py:46: def MeasurePage(self, page, tab, ...
7 years, 7 months ago (2013-05-14 15:07:07 UTC) #7
bulach
thanks dai! comments addressed, another look please? https://codereview.chromium.org/15093008/diff/10001/tools/perf/perf_tools/memory_measurement.py File tools/perf/perf_tools/memory_measurement.py (right): https://codereview.chromium.org/15093008/diff/10001/tools/perf/perf_tools/memory_measurement.py#newcode46 tools/perf/perf_tools/memory_measurement.py:46: def MeasurePage(self, ...
7 years, 7 months ago (2013-05-14 15:34:17 UTC) #8
tonyg
Great patch! Some suggestions inline https://codereview.chromium.org/15093008/diff/18001/tools/perf/perf_tools/memory_measurement.py File tools/perf/perf_tools/memory_measurement.py (right): https://codereview.chromium.org/15093008/diff/18001/tools/perf/perf_tools/memory_measurement.py#newcode60 tools/perf/perf_tools/memory_measurement.py:60: print 'TCMalloc heap dumps ...
7 years, 7 months ago (2013-05-14 16:52:44 UTC) #9
Dai Mikurube (NOT FULLTIME)
Basically lgtm from my side just with one comment about chrome.memoryBenchmarking.isHeapProfilerRunning. I defer the final ...
7 years, 7 months ago (2013-05-14 17:02:10 UTC) #10
bulach
thanks tony! comments addressed and some clarifications below.. https://codereview.chromium.org/15093008/diff/18001/tools/perf/perf_tools/memory_measurement.py File tools/perf/perf_tools/memory_measurement.py (right): https://codereview.chromium.org/15093008/diff/18001/tools/perf/perf_tools/memory_measurement.py#newcode60 tools/perf/perf_tools/memory_measurement.py:60: print ...
7 years, 7 months ago (2013-05-14 17:54:47 UTC) #11
tonyg
lgtm https://codereview.chromium.org/15093008/diff/18001/tools/perf/perf_tools/memory_measurement.py File tools/perf/perf_tools/memory_measurement.py (right): https://codereview.chromium.org/15093008/diff/18001/tools/perf/perf_tools/memory_measurement.py#newcode53 tools/perf/perf_tools/memory_measurement.py:53: dumps = eval(tab.EvaluateJavaScript(""" Please use json instead of ...
7 years, 7 months ago (2013-05-14 18:54:13 UTC) #12
bulach
thanks all! dai: as we chatted, this is now saving a "browser.pid" file to the ...
7 years, 7 months ago (2013-05-15 10:22:55 UTC) #13
Dai Mikurube (NOT FULLTIME)
Still lgtm. :)
7 years, 7 months ago (2013-05-15 12:08:16 UTC) #14
tonyg
lgtm https://codereview.chromium.org/15093008/diff/28002/tools/perf/perf_tools/memory_measurement.py File tools/perf/perf_tools/memory_measurement.py (right): https://codereview.chromium.org/15093008/diff/28002/tools/perf/perf_tools/memory_measurement.py#newcode52 tools/perf/perf_tools/memory_measurement.py:52: if self._is_running_tcmalloc_heap_profiler: I think you could remove the ...
7 years, 7 months ago (2013-05-15 15:46:17 UTC) #15
bulach
thanks tony! addressed your comment in a slightly different way, let me know wdyt and ...
7 years, 7 months ago (2013-05-16 09:01:29 UTC) #16
Dai Mikurube (NOT FULLTIME)
I tried running Telemetry tests with this. What I observed were: browser.pid (it says "30601") ...
7 years, 7 months ago (2013-05-16 11:02:51 UTC) #17
bulach
On 2013/05/16 11:02:51, Dai Mikurube wrote: > I tried running Telemetry tests with this. What ...
7 years, 7 months ago (2013-05-16 11:41:27 UTC) #18
bulach
actually, sorry, I see what you're saying... :) the directory gets wiped out *after* the ...
7 years, 7 months ago (2013-05-16 11:45:49 UTC) #19
bulach
dai: I have addressed the comments, mind taking another look please?
7 years, 7 months ago (2013-05-22 15:54:18 UTC) #20
Dai Mikurube (NOT FULLTIME)
lgtm (while I haven't executed it yet)
7 years, 7 months ago (2013-05-23 08:49:22 UTC) #21
bulach
thanks dai! I'll put this in the CQ, we can always refine later (this is ...
7 years, 7 months ago (2013-05-23 08:56:07 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bulach@chromium.org/15093008/42001
7 years, 7 months ago (2013-05-23 09:08:30 UTC) #23
commit-bot: I haz the power
7 years, 7 months ago (2013-05-24 01:18:10 UTC) #24
Message was sent while issue was closed.
Change committed as 201953

Powered by Google App Engine
This is Rietveld 408576698