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

Issue 1310123007: Add support for light dumps in SkTraceMemoryDump interface. (Closed)

Created:
5 years, 3 months ago by ssid
Modified:
5 years, 2 months ago
CC:
reviews_skia.org
Base URL:
https://chromium.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Add support for light dumps in SkTraceMemoryDump interface. SkGlyphCache dumps too many glyphs, and to reduce the trace size, RequestDetails enum is added to SkTraceMemoryDump interface. This would tell caches to dump only requested details or not a detailed dump. BUG=499731 Committed: https://skia.googlesource.com/skia/+/f0c986503b982cfbd4d859573c11bc2a154b42f5

Patch Set 1 #

Patch Set 2 : Add backing. #

Patch Set 3 : Fix test. #

Total comments: 1

Patch Set 4 : Move to RequestedDetails enum. #

Patch Set 5 : Nits. #

Total comments: 1

Patch Set 6 : uint. #

Total comments: 4

Patch Set 7 : Fixes. #

Patch Set 8 : Nit. #

Patch Set 9 : Test fix. #

Patch Set 10 : Nit. #

Patch Set 11 : Change to light and detailed. #

Total comments: 4

Patch Set 12 : Renames. #

Total comments: 3

Patch Set 13 : Fixes. #

Patch Set 14 : Using KObjectsBreakdowns_LevelOfDetail. #

Total comments: 1

Patch Set 15 : Fixing typo. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -11 lines) Patch
M include/core/SkTraceMemoryDump.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +18 lines, -0 lines 0 comments Download
M src/core/SkGlyphCache.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +12 lines, -7 lines 0 comments Download
M src/core/SkResourceCache.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +6 lines, -4 lines 0 comments Download
M tests/TraceMemoryDumpTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 51 (16 generated)
ssid
PTAL if this is as per our discussion. Thanks
5 years, 3 months ago (2015-09-07 19:07:34 UTC) #2
Primiano Tucci (use gerrit)
lgtm
5 years, 3 months ago (2015-09-10 11:15:42 UTC) #3
ssid
PTAL, Thanks
5 years, 3 months ago (2015-09-10 11:22:42 UTC) #5
reed1
this will break our unittests, as they have a subclass of SkTraceMemoryDump, that will need ...
5 years, 3 months ago (2015-09-10 17:01:04 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1310123007/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1310123007/40001
5 years, 3 months ago (2015-09-10 19:21:42 UTC) #8
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
5 years, 3 months ago (2015-09-10 19:21:44 UTC) #9
ssid
Fixed the test, PTAL. Thanks
5 years, 3 months ago (2015-09-10 19:32:16 UTC) #10
reed1
lgtm w/ naming question/comment. https://codereview.chromium.org/1310123007/diff/40001/include/core/SkTraceMemoryDump.h File include/core/SkTraceMemoryDump.h (right): https://codereview.chromium.org/1310123007/diff/40001/include/core/SkTraceMemoryDump.h#newcode61 include/core/SkTraceMemoryDump.h:61: virtual bool isLightDump() const = ...
5 years, 3 months ago (2015-09-10 19:44:37 UTC) #11
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-10 21:16:03 UTC) #13
Primiano Tucci (use gerrit)
LGTM, like reed@'s proposal Just mind the type https://codereview.chromium.org/1310123007/diff/100001/include/core/SkTraceMemoryDump.h File include/core/SkTraceMemoryDump.h (right): https://codereview.chromium.org/1310123007/diff/100001/include/core/SkTraceMemoryDump.h#newcode73 include/core/SkTraceMemoryDump.h:73: virtual ...
5 years, 3 months ago (2015-09-11 12:16:16 UTC) #15
ssid
Thanks made changes.
5 years, 3 months ago (2015-09-11 15:13:21 UTC) #16
Primiano Tucci (use gerrit)
https://codereview.chromium.org/1310123007/diff/120001/src/core/SkResourceCache.cpp File src/core/SkResourceCache.cpp (right): https://codereview.chromium.org/1310123007/diff/120001/src/core/SkResourceCache.cpp#newcode692 src/core/SkResourceCache.cpp:692: SkTraceMemoryDump::kDiscardableDetails | SkTraceMemoryDump::kMallocDetails) { This flag check seems wrong. ...
5 years, 3 months ago (2015-09-11 17:39:53 UTC) #17
reed1
https://codereview.chromium.org/1310123007/diff/120001/tests/TraceMemoryDumpTest.cpp File tests/TraceMemoryDumpTest.cpp (right): https://codereview.chromium.org/1310123007/diff/120001/tests/TraceMemoryDumpTest.cpp#newcode27 tests/TraceMemoryDumpTest.cpp:27: uint32_t getRequestedDetails() const override { return 0; } Does ...
5 years, 3 months ago (2015-09-11 19:03:31 UTC) #18
ssid
Fixed the mistakes. PTAL https://codereview.chromium.org/1310123007/diff/120001/src/core/SkResourceCache.cpp File src/core/SkResourceCache.cpp (right): https://codereview.chromium.org/1310123007/diff/120001/src/core/SkResourceCache.cpp#newcode692 src/core/SkResourceCache.cpp:692: SkTraceMemoryDump::kDiscardableDetails | SkTraceMemoryDump::kMallocDetails) { On ...
5 years, 3 months ago (2015-09-21 14:24:14 UTC) #19
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1310123007/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1310123007/180001
5 years, 3 months ago (2015-09-22 13:44:04 UTC) #21
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Ubuntu-GCC-Mips-Debug-Android-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-GCC-Mips-Debug-Android-Trybot/builds/2598)
5 years, 3 months ago (2015-09-22 13:44:57 UTC) #23
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1310123007/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1310123007/200001
5 years, 3 months ago (2015-09-22 14:18:14 UTC) #25
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-22 14:23:07 UTC) #27
Primiano Tucci (use gerrit)
LGTM with just naming nits. thanks https://codereview.chromium.org/1310123007/diff/220001/include/core/SkTraceMemoryDump.h File include/core/SkTraceMemoryDump.h (right): https://codereview.chromium.org/1310123007/diff/220001/include/core/SkTraceMemoryDump.h#newcode27 include/core/SkTraceMemoryDump.h:27: kLightDumpRequest, Remove rquest ...
5 years, 3 months ago (2015-09-24 13:10:28 UTC) #28
ssid
Done, Thanks https://codereview.chromium.org/1310123007/diff/220001/include/core/SkTraceMemoryDump.h File include/core/SkTraceMemoryDump.h (right): https://codereview.chromium.org/1310123007/diff/220001/include/core/SkTraceMemoryDump.h#newcode27 include/core/SkTraceMemoryDump.h:27: kLightDumpRequest, On 2015/09/24 13:10:27, Primiano Tucci wrote: ...
5 years, 3 months ago (2015-09-24 13:18:49 UTC) #29
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1310123007/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1310123007/240001
5 years, 3 months ago (2015-09-24 13:20:31 UTC) #31
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-24 13:25:37 UTC) #33
ssid
reed@ Sorry for lot of changes, Could you please take a look now? Thanks for ...
5 years, 3 months ago (2015-09-24 13:27:04 UTC) #34
reed1
https://codereview.chromium.org/1310123007/diff/240001/include/core/SkTraceMemoryDump.h File include/core/SkTraceMemoryDump.h (right): https://codereview.chromium.org/1310123007/diff/240001/include/core/SkTraceMemoryDump.h#newcode25 include/core/SkTraceMemoryDump.h:25: enum LevelOfDetails { naming nits: 1. skia would make ...
5 years, 2 months ago (2015-09-28 17:02:00 UTC) #35
reed1
Ugh, my spelling was terrible. kLight seems like a fine modifier for Level-Of-Detail, but kDetailed ...
5 years, 2 months ago (2015-09-28 17:02:50 UTC) #36
Primiano Tucci (use gerrit)
https://codereview.chromium.org/1310123007/diff/240001/include/core/SkTraceMemoryDump.h File include/core/SkTraceMemoryDump.h (right): https://codereview.chromium.org/1310123007/diff/240001/include/core/SkTraceMemoryDump.h#newcode25 include/core/SkTraceMemoryDump.h:25: enum LevelOfDetails { > - do we anticipate other ...
5 years, 2 months ago (2015-09-28 17:22:45 UTC) #37
ssid
https://codereview.chromium.org/1310123007/diff/240001/include/core/SkTraceMemoryDump.h File include/core/SkTraceMemoryDump.h (right): https://codereview.chromium.org/1310123007/diff/240001/include/core/SkTraceMemoryDump.h#newcode25 include/core/SkTraceMemoryDump.h:25: enum LevelOfDetails { On 2015/09/28 17:02:00, reed1 wrote: > ...
5 years, 2 months ago (2015-09-28 17:23:32 UTC) #38
ssid
On 2015/09/28 17:23:32, ssid wrote: > https://codereview.chromium.org/1310123007/diff/240001/include/core/SkTraceMemoryDump.h > File include/core/SkTraceMemoryDump.h (right): > > https://codereview.chromium.org/1310123007/diff/240001/include/core/SkTraceMemoryDump.h#newcode25 > ...
5 years, 2 months ago (2015-09-28 23:04:49 UTC) #39
reed1
I presume you mean kObject... and not KObject... lgtm other than that https://codereview.chromium.org/1310123007/diff/280001/include/core/SkTraceMemoryDump.h File include/core/SkTraceMemoryDump.h ...
5 years, 2 months ago (2015-09-29 21:26:32 UTC) #40
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1310123007/300001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1310123007/300001
5 years, 2 months ago (2015-09-30 11:22:05 UTC) #42
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 2 months ago (2015-09-30 11:30:23 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1310123007/300001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1310123007/300001
5 years, 2 months ago (2015-09-30 11:30:42 UTC) #47
commit-bot: I haz the power
Committed patchset #15 (id:300001) as https://skia.googlesource.com/skia/+/f0c986503b982cfbd4d859573c11bc2a154b42f5
5 years, 2 months ago (2015-09-30 11:31:29 UTC) #48
robertphillips
This appears to be blocking the roll with several errors like: ../../skia/ext/skia_memory_dump_provider.cc:40:28: error: variable type ...
5 years, 2 months ago (2015-09-30 11:56:28 UTC) #50
ssid
5 years, 2 months ago (2015-09-30 11:58:54 UTC) #51
Message was sent while issue was closed.
On 2015/09/30 11:56:28, robertphillips wrote:
> This appears to be blocking the roll with several errors like:
> 
> ../../skia/ext/skia_memory_dump_provider.cc:40:28: error: variable type
> 'skia::SkTraceMemoryDump_Chrome' is an abstract class
>   SkTraceMemoryDump_Chrome skia_dumper(process_memory_dump);
>                            ^
> ../../third_party/skia/include/core/SkTraceMemoryDump.h:74:27: note:
> unimplemented pure virtual method 'getRequestedDetails' in
> 'SkTraceMemoryDump_Chrome'
>     virtual LevelOfDetail getRequestedDetails() const = 0;

This CL https://codereview.chromium.org/1324453008/ fixes the issue.

Powered by Google App Engine
This is Rietveld 408576698