5 years, 5 months ago
(2015-07-15 18:56:53 UTC)
#4
Thanks for your comments. PTAL.
Petr
nednguyen
On 2015/07/15 18:56:53, petrcermak wrote: > Thanks for your comments. PTAL. > > Petr This ...
5 years, 5 months ago
(2015-07-15 21:23:23 UTC)
#5
On 2015/07/15 18:56:53, petrcermak wrote:
> Thanks for your comments. PTAL.
>
> Petr
This is landable. Can you add unittest?
nednguyen
https://codereview.chromium.org/1224083015/diff/20001/tools/telemetry/telemetry/internal/backends/browser_backend.py File tools/telemetry/telemetry/internal/backends/browser_backend.py (right): https://codereview.chromium.org/1224083015/diff/20001/tools/telemetry/telemetry/internal/backends/browser_backend.py#newcode106 tools/telemetry/telemetry/internal/backends/browser_backend.py:106: def supports_memory_dumps(self): Actually this should be "support_memory_dumping"?
5 years, 5 months ago
(2015-07-15 23:16:30 UTC)
#6
5 years, 5 months ago
(2015-07-16 10:29:21 UTC)
#7
Patchset #3 (id:40001) has been deleted
petrcermak
I added 2 unit tests and 1 browser test to tracing_backend_unittest.py. Unfortunately, the browser test ...
5 years, 5 months ago
(2015-07-16 10:33:01 UTC)
#8
I added 2 unit tests and 1 browser test to tracing_backend_unittest.py.
Unfortunately, the browser test has to remain disabled until the new method is
added to the DevTools API. It seemed unnecessary to test the new methods in the
other classes because they are just plumbing (and the new browser test will
check the plumbing all the way from Browser once enabled).
Thanks,
Petr
https://codereview.chromium.org/1224083015/diff/20001/tools/telemetry/telemet...
File tools/telemetry/telemetry/internal/backends/browser_backend.py (right):
https://codereview.chromium.org/1224083015/diff/20001/tools/telemetry/telemet...
tools/telemetry/telemetry/internal/backends/browser_backend.py:106: def
supports_memory_dumps(self):
On 2015/07/15 23:16:30, nednguyen wrote:
> Actually this should be "support_memory_dumping"?
Done. All properties in this file are prefixed with "supports_", so I renamed it
to "supports_memory_dumping" to be consistent.
5 years, 5 months ago
(2015-07-16 19:03:14 UTC)
#12
https://codereview.chromium.org/1224083015/diff/60001/tools/telemetry/telemet...
File tools/telemetry/telemetry/internal/backends/browser_backend.py (right):
https://codereview.chromium.org/1224083015/diff/60001/tools/telemetry/telemet...
tools/telemetry/telemetry/internal/backends/browser_backend.py:109: def
DumpMemory(self, timeout=web_contents.DEFAULT_WEB_CONTENTS_TIMEOUT):
On 2015/07/16 13:35:33, petrcermak wrote:
> On 2015/07/16 10:47:54, Primiano Tucci wrote:
> > Shouldn't you pass also the dumper_config (by default="") argument through,
so
> > when we have light/heavy dumps you can control them?
>
> Done.
I removed the argument after today's discussion.
5 years, 5 months ago
(2015-07-16 19:54:17 UTC)
#13
On 2015/07/16 19:03:14, petrcermak wrote:
>
https://codereview.chromium.org/1224083015/diff/60001/tools/telemetry/telemet...
> File tools/telemetry/telemetry/internal/backends/browser_backend.py (right):
>
>
https://codereview.chromium.org/1224083015/diff/60001/tools/telemetry/telemet...
> tools/telemetry/telemetry/internal/backends/browser_backend.py:109: def
> DumpMemory(self, timeout=web_contents.DEFAULT_WEB_CONTENTS_TIMEOUT):
> On 2015/07/16 13:35:33, petrcermak wrote:
> > On 2015/07/16 10:47:54, Primiano Tucci wrote:
> > > Shouldn't you pass also the dumper_config (by default="") argument
through,
> so
> > > when we have light/heavy dumps you can control them?
> >
> > Done.
>
> I removed the argument after today's discussion.
lgtm
petrcermak
This patch was superseded by https://codereview.chromium.org/1257693002/. We decided to extend the API exposed by the ...
5 years, 5 months ago
(2015-07-24 14:39:23 UTC)
#14
Message was sent while issue was closed.
This patch was superseded by https://codereview.chromium.org/1257693002/. We
decided to extend the API exposed by the existing memory benchmarking extension
instead of augmenting the DevTools API.
petrcermak
nednguyen: After some discussions we decided to go back to the DevTools solution. I'm really ...
5 years, 4 months ago
(2015-07-29 15:33:19 UTC)
#15
nednguyen: After some discussions we decided to go back to the DevTools
solution. I'm really sorry for the confusion and extra work (the DevTools API
has fortunately landed already, so there should be no more surprises). Could you
please have one more quick look at this patch if it's still OK to land (I made a
few changes)?
Thanks,
Petr
nednguyen
No worry, change of direction does happen :-) lgtm https://codereview.chromium.org/1224083015/diff/120001/tools/telemetry/telemetry/internal/backends/chrome_inspector/tracing_backend_unittest.py File tools/telemetry/telemetry/internal/backends/chrome_inspector/tracing_backend_unittest.py (right): https://codereview.chromium.org/1224083015/diff/120001/tools/telemetry/telemetry/internal/backends/chrome_inspector/tracing_backend_unittest.py#newcode164 tools/telemetry/telemetry/internal/backends/chrome_inspector/tracing_backend_unittest.py:164: ...
5 years, 4 months ago
(2015-07-29 16:07:41 UTC)
#16
https://codereview.chromium.org/1224083015/diff/120001/tools/telemetry/telemetry/internal/backends/chrome_inspector/tracing_backend_unittest.py File tools/telemetry/telemetry/internal/backends/chrome_inspector/tracing_backend_unittest.py (right): https://codereview.chromium.org/1224083015/diff/120001/tools/telemetry/telemetry/internal/backends/chrome_inspector/tracing_backend_unittest.py#newcode164 tools/telemetry/telemetry/internal/backends/chrome_inspector/tracing_backend_unittest.py:164: # Check that dumping memory before tracing starts raises ...
5 years, 4 months ago
(2015-07-29 16:15:05 UTC)
#17
https://codereview.chromium.org/1224083015/diff/120001/tools/telemetry/teleme...
File
tools/telemetry/telemetry/internal/backends/chrome_inspector/tracing_backend_unittest.py
(right):
https://codereview.chromium.org/1224083015/diff/120001/tools/telemetry/teleme...
tools/telemetry/telemetry/internal/backends/chrome_inspector/tracing_backend_unittest.py:164:
# Check that dumping memory before tracing starts raises an exception.
On 2015/07/29 16:07:41, nednguyen wrote:
> This is interesting. Dumping memory command can only work when tracing is
> running?
Yes. The reason is that the dump is added to the trace (so there's no place to
put it if tracing is not running). The request only returns the GUID of the
generated dump (not the whole large dump).
petrcermak
The CQ bit was checked by petrcermak@chromium.org
5 years, 4 months ago
(2015-07-29 16:15:18 UTC)
#18
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1224083015/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1224083015/120001
5 years, 4 months ago
(2015-07-29 16:16:04 UTC)
#19
Issue 1224083015: [telemetry] Add support for requesting memory dumps via DevTools API
(Closed)
Created 5 years, 5 months ago by petrcermak
Modified 5 years, 4 months ago
Reviewers: nednguyen, Primiano Tucci (use gerrit)
Base URL: https://chromium.googlesource.com/chromium/src.git@master
Comments: 10