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

Issue 1267963002: [tracing] Throttle rate of heavy dumps and support to request light/heavy dumps (Closed)

Created:
5 years, 4 months ago by ssid
Modified:
5 years, 4 months ago
Reviewers:
nduca, pfeldman, petrcermak
CC:
chromium-reviews, wfh+watch_chromium.org, jam, yurys, darin-cc_chromium.org, devtools-reviews_chromium.org, tracing+reviews_chromium.org, erikwright+watch_chromium.org, pfeldman
Base URL:
https://chromium.googlesource.com/chromium/src.git@light_dumps
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[tracing] Throttle rate of heavy dumps and support to request light/heavy dumps Currently all the dump providers dump detailed dumps every periodic dump. This makes the trace files huge. So, this CL throttles down the rate of heavy dumps of all the dump providers and removes temporary hacks. Along with this, this CL also adds support to request light and heavy dumps by adding MemoryDumpArgs as param to RequestGlobalDump() TBR=pfeldman@chromium.org BUG=499731 Committed: https://crrev.com/33f2d3a5b276b70040adfd21edf364bd666b0aa2 Cr-Commit-Position: refs/heads/master@{#342145}

Patch Set 1 #

Patch Set 2 : Tests #

Total comments: 4

Patch Set 3 : Fix win build. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -50 lines) Patch
M base/trace_event/memory_dump_manager.h View 1 chunk +4 lines, -1 line 0 comments Download
M base/trace_event/memory_dump_manager.cc View 1 2 7 chunks +18 lines, -30 lines 0 comments Download
M base/trace_event/memory_dump_manager_unittest.cc View 1 2 15 chunks +79 lines, -14 lines 0 comments Download
M base/trace_event/memory_dump_request_args.h View 3 chunks +3 lines, -2 lines 0 comments Download
M base/trace_event/memory_dump_request_args.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M content/browser/devtools/protocol/tracing_handler.cc View 1 chunk +3 lines, -1 line 0 comments Download

Depends on Patchset:

Messages

Total messages: 28 (12 generated)
ssid
PTAL. Thanks
5 years, 4 months ago (2015-08-03 16:06:16 UTC) #2
petrcermak
Amazing job! LGTM with 2 comments! Thanks, Petr https://codereview.chromium.org/1267963002/diff/20001/base/trace_event/memory_dump_manager.cc File base/trace_event/memory_dump_manager.cc (right): https://codereview.chromium.org/1267963002/diff/20001/base/trace_event/memory_dump_manager.cc#newcode65 base/trace_event/memory_dump_manager.cc:65: MemoryDumpType ...
5 years, 4 months ago (2015-08-03 16:15:04 UTC) #3
petrcermak
Amazing job! LGTM with 2 comments! Thanks, Petr
5 years, 4 months ago (2015-08-03 16:15:05 UTC) #4
ssid
Thanks. https://codereview.chromium.org/1267963002/diff/20001/base/trace_event/memory_dump_manager.cc File base/trace_event/memory_dump_manager.cc (right): https://codereview.chromium.org/1267963002/diff/20001/base/trace_event/memory_dump_manager.cc#newcode65 base/trace_event/memory_dump_manager.cc:65: MemoryDumpType dump_type = MemoryDumpType::PERIODIC_INTERVAL; On 2015/08/03 16:15:03, petrcermak ...
5 years, 4 months ago (2015-08-03 16:24:09 UTC) #5
ssid
+danakj This is the second patch, related to crrev.com/1262333005. PTAL, thanks.
5 years, 4 months ago (2015-08-03 16:26:11 UTC) #7
danakj
On 2015/08/03 16:26:11, ssid wrote: > +danakj This is the second patch, related to crrev.com/1262333005. ...
5 years, 4 months ago (2015-08-03 17:49:42 UTC) #8
ssid
PTAL.
5 years, 4 months ago (2015-08-03 18:25:31 UTC) #11
nduca
lgtm
5 years, 4 months ago (2015-08-04 15:47:42 UTC) #12
nduca
lgtm
5 years, 4 months ago (2015-08-04 15:50:14 UTC) #13
ssid
+pfeldman PTAL at tracing_handler.cc. It is just a 2 line change.
5 years, 4 months ago (2015-08-04 17:12:24 UTC) #14
ssid
+pfeldman PTAL at tracing_handler.cc. It is just a 2 line change
5 years, 4 months ago (2015-08-04 17:13:35 UTC) #16
pfeldman
lgtm
5 years, 4 months ago (2015-08-06 17:57:38 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1267963002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1267963002/80001
5 years, 4 months ago (2015-08-06 17:58:50 UTC) #20
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 4 months ago (2015-08-06 18:04:23 UTC) #21
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/33f2d3a5b276b70040adfd21edf364bd666b0aa2 Cr-Commit-Position: refs/heads/master@{#342145}
5 years, 4 months ago (2015-08-06 18:05:08 UTC) #22
waffles
5 years, 4 months ago (2015-08-06 19:00:59 UTC) #23
Message was sent while issue was closed.
A revert of this CL (patchset #5 id:80001) has been created in
https://codereview.chromium.org/1272703003/ by waffles@chromium.org.

The reason for reverting is: Suspect it breaks Linux telemetry tests (or
possibly introduces flakiness):

Example
https://build.chromium.org/p/chromium.linux/builders/Linux%20Tests/builds/28807

telemetry.internal.backends.chrome_inspector.tracing_backend_unittest.TracingBackendMemoryTest.testDumpMemorySuccess
failed unexpectedly 0.2190s:
  Traceback (most recent call last):
    File
"/mnt/data/b/build/slave/Linux_Tests/build/src/tools/telemetry/telemetry/internal/backends/chrome_inspector/tracing_backend_unittest.py",
line 144, in testDumpMemorySuccess
      dump_id = self._browser.DumpMemory()
    File
"/mnt/data/b/build/slave/Linux_Tests/build/src/tools/telemetry/telemetry/internal/browser/browser.py",
line 291, in DumpMemory
      return self._browser_backend.DumpMemory(timeout)
    File
"/mnt/data/b/build/slave/Linux_Tests/build/src/tools/telemetry/telemetry/internal/backends/chrome/chrome_browser_backend.py",
line 321, in DumpMemory
      return self.devtools_client.DumpMemory(timeout)
    File
"/mnt/data/b/build/slave/Linux_Tests/build/src/tools/telemetry/telemetry/internal/backends/chrome_inspector/devtools_client_backend.py",
line 231, in DumpMemory
      return self._tracing_backend.DumpMemory(timeout)
    File
"/mnt/data/b/build/slave/Linux_Tests/build/src/tools/telemetry/telemetry/internal/backends/chrome_inspector/tracing_backend.py",
line 128, in DumpMemory
      'Tracing.requestMemoryDump:\n' + json.dumps(response, indent=2))
  TracingUnexpectedResponseException: Inspector returned unexpected response for
Tracing.requestMemoryDump:
  {
    "id": 2, 
    "error": {
      "message": "Tracing is not started", 
      "code": -32603
    }
  }.

Powered by Google App Engine
This is Rietveld 408576698