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

Issue 1652053004: Add Histogram Macros to Skia (Closed)

Created:
4 years, 10 months ago by ericrk
Modified:
4 years, 10 months ago
Reviewers:
bsalomon, mtklein, reed1
CC:
reviews_skia.org
Base URL:
https://chromium.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Add Histogram Macros to Skia Adds a set of histogram macros to Skia, modeled after Chrome's UMA_HISTOGRAM_* macros. These allow logging of high frequency events, and are useful to analyze real world usage of certain features. By default, these macros are no-ops. Users can provide a custom header file which defines these macros if they wish to collect histogram data. Chrome will provide such a header. I've currently only added two macros: - SK_HISTOGRAM_BOOLEAN - logs a true/false type relationship (whether we are tiling a texture or not on each draw). - SK_HISTOGRAM_ENUMERATION - logs a set of potential values (which of a number of choices were selected for the texture upload path). We could add more unused macros at the moment, but it seems easier to add these as needed, WDYT? BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1652053004 Committed: https://skia.googlesource.com/skia/+/369e9375a3ab7bb56580fc6b22690a76ad759240

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : Remove standalone header, move defines to skUserConfig #

Total comments: 2

Patch Set 4 : enum ordering change #

Patch Set 5 : Fix unused constant error in release w/ enum-based constant #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -0 lines) Patch
M include/config/SkUserConfig.h View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M include/core/SkPostConfig.h View 1 2 1 chunk +10 lines, -0 lines 0 comments Download
M src/core/SkImageCacherator.cpp View 1 2 3 4 5 chunks +25 lines, -0 lines 1 comment Download
M src/gpu/SkGpuDevice.cpp View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M src/gpu/SkGpuDevice_drawTexture.cpp View 1 2 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 36 (17 generated)
ericrk
This is a simple attempt to get some amount of UMA histogram logging functionality into ...
4 years, 10 months ago (2016-02-01 20:51:31 UTC) #4
bsalomon
Adding reed@ as I think he will want to have a say in this. https://codereview.chromium.org/1652053004/diff/20001/include/config/SkUserConfig.h ...
4 years, 10 months ago (2016-02-01 21:18:08 UTC) #6
ericrk
https://codereview.chromium.org/1652053004/diff/20001/include/config/SkUserConfig.h File include/config/SkUserConfig.h (right): https://codereview.chromium.org/1652053004/diff/20001/include/config/SkUserConfig.h#newcode162 include/config/SkUserConfig.h:162: //#define SK_HISTOGRAM_LOGGING_CUSTOM_SETUP_HEADER On 2016/02/01 21:18:08, bsalomon wrote: > I ...
4 years, 10 months ago (2016-02-01 21:58:33 UTC) #7
mtklein
On 2016/02/01 21:58:33, ericrk wrote: > https://codereview.chromium.org/1652053004/diff/20001/include/config/SkUserConfig.h > File include/config/SkUserConfig.h (right): > > https://codereview.chromium.org/1652053004/diff/20001/include/config/SkUserConfig.h#newcode162 > ...
4 years, 10 months ago (2016-02-01 22:00:24 UTC) #8
ericrk
On 2016/02/01 22:00:24, mtklein wrote: > On 2016/02/01 21:58:33, ericrk wrote: > > > https://codereview.chromium.org/1652053004/diff/20001/include/config/SkUserConfig.h ...
4 years, 10 months ago (2016-02-01 22:10:25 UTC) #9
ericrk
4 years, 10 months ago (2016-02-01 22:59:33 UTC) #10
mtklein
I have many questions about how this will end up used. I don't want to ...
4 years, 10 months ago (2016-02-02 00:55:23 UTC) #12
bsalomon
lgtm
4 years, 10 months ago (2016-02-02 18:39:47 UTC) #13
reed1
I'm fine as a first step, but I'd feel much better knowing how skia can ...
4 years, 10 months ago (2016-02-02 18:42:46 UTC) #14
mtklein
On 2016/02/02 18:42:46, reed1 wrote: > I'm fine as a first step, but I'd feel ...
4 years, 10 months ago (2016-02-02 19:12:09 UTC) #15
ericrk
responded to mtklein's comments, which I think should address some of the other questions as ...
4 years, 10 months ago (2016-02-02 19:36:29 UTC) #16
ericrk
On 2016/02/02 18:42:46, reed1 wrote: > I'm fine as a first step, but I'd feel ...
4 years, 10 months ago (2016-02-02 19:37:39 UTC) #17
ericrk
On 2016/02/02 19:37:39, ericrk wrote: > On 2016/02/02 18:42:46, reed1 wrote: > > I'm fine ...
4 years, 10 months ago (2016-02-02 23:09:03 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1652053004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1652053004/40001
4 years, 10 months ago (2016-02-02 23:09:17 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1652053004/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1652053004/100001
4 years, 10 months ago (2016-02-05 21:25:03 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: Build-Mac-Clang-x86_64-Release-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Mac-Clang-x86_64-Release-Trybot/builds/19) Build-Ubuntu-GCC-Arm64-Debug-Android-Trybot on client.skia.compile (JOB_FAILED, ...
4 years, 10 months ago (2016-02-05 21:26:10 UTC) #28
ericrk
https://codereview.chromium.org/1652053004/diff/120001/src/core/SkImageCacherator.cpp File src/core/SkImageCacherator.cpp (right): https://codereview.chromium.org/1652053004/diff/120001/src/core/SkImageCacherator.cpp#newcode254 src/core/SkImageCacherator.cpp:254: enum { kLockTexturePathCount = kRGBA_LockTexturePath + 1 }; This ...
4 years, 10 months ago (2016-02-05 22:59:02 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1652053004/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1652053004/120001
4 years, 10 months ago (2016-02-05 22:59:33 UTC) #34
commit-bot: I haz the power
4 years, 10 months ago (2016-02-05 23:32:39 UTC) #36
Message was sent while issue was closed.
Committed patchset #5 (id:120001) as
https://skia.googlesource.com/skia/+/369e9375a3ab7bb56580fc6b22690a76ad759240

Powered by Google App Engine
This is Rietveld 408576698