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

Issue 1212253013: Outline SkSpinlock::acquire(). (Closed)

Created:
5 years, 5 months ago by mtklein_C
Modified:
5 years, 5 months ago
Reviewers:
herb_g, mtklein
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Outline SkSpinlock::acquire(). The proportion of time spent doing useful work is well over 99% in acquire(), so outlining it doesn't hurt speed at all, and makes it much easier to pick out on a profile. It'd be about 50/50 work/overhead if we outlined the extremely-cheap release(). I also tried outlining some SkRefCnt methods with similar mixed results. BUG=skia: No public API changes. TBR=reed@google.com Committed: https://skia.googlesource.com/skia/+/828877d7267bcb7c272a1df4e36a6a79894bf00d

Patch Set 1 #

Patch Set 2 : only acquire() #

Patch Set 3 : fixup #

Patch Set 4 : contendedAcquire #

Patch Set 5 : fighting the compiler #

Patch Set 6 : doc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -3 lines) Patch
M gyp/core.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M include/core/SkSpinlock.h View 1 2 3 4 5 1 chunk +10 lines, -3 lines 0 comments Download
A src/core/SkSpinlock.cpp View 1 2 3 4 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (10 generated)
mtklein_C
5 years, 5 months ago (2015-07-08 13:37:22 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1212253013/40001
5 years, 5 months ago (2015-07-08 13:37:52 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 5 months ago (2015-07-08 13:45:23 UTC) #6
herb_g
Have you thought about using function to get insight into wait time. You could have ...
5 years, 5 months ago (2015-07-08 13:53:21 UTC) #7
mtklein
On 2015/07/08 13:53:21, herb1 wrote: > Have you thought about using function to get insight ...
5 years, 5 months ago (2015-07-08 14:04:45 UTC) #8
herb_g
So, this would be a kind of double check locking. I don't think this is ...
5 years, 5 months ago (2015-07-08 16:08:52 UTC) #9
mtklein
On 2015/07/08 16:08:52, herb1 wrote: > So, this would be a kind of double check ...
5 years, 5 months ago (2015-07-08 16:41:30 UTC) #10
mtklein
On 2015/07/08 16:41:30, mtklein wrote: > On 2015/07/08 16:08:52, herb1 wrote: > > So, this ...
5 years, 5 months ago (2015-07-08 16:44:03 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1212253013/80001
5 years, 5 months ago (2015-07-08 16:44:39 UTC) #13
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 5 months ago (2015-07-08 16:58:48 UTC) #15
mtklein_C
ping? I'm finding this really insightful when profiling your glyph cache change with different numbers ...
5 years, 5 months ago (2015-07-09 17:25:52 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1212253013/100001
5 years, 5 months ago (2015-07-09 17:26:26 UTC) #18
herb_g
lgtm Nice. I will have to hurry and integrate this into my current CL.
5 years, 5 months ago (2015-07-09 17:33:35 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1212253013/100001
5 years, 5 months ago (2015-07-09 17:37:17 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: skia_presubmit-Trybot on client.skia.fyi (JOB_FAILED, http://build.chromium.org/p/client.skia.fyi/builders/skia_presubmit-Trybot/builds/978)
5 years, 5 months ago (2015-07-09 17:38:56 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1212253013/100001
5 years, 5 months ago (2015-07-09 17:50:35 UTC) #26
commit-bot: I haz the power
5 years, 5 months ago (2015-07-09 17:51:40 UTC) #27
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://skia.googlesource.com/skia/+/828877d7267bcb7c272a1df4e36a6a79894bf00d

Powered by Google App Engine
This is Rietveld 408576698