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

Issue 2650943008: [gin] Fire observer after added when recording is in progress. (Closed)

Created:
3 years, 11 months ago by lpy
Modified:
3 years, 10 months ago
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[gin] Fire observer after added when recording is in progress. When run benchmarks on Android, we don't get runtime statistics result because we register an observer to trigger a flag to enable it, however, tracing is started before observers are added to observer list in this case, thus we force to fire observer when we register an observer through platform API when recording is in progress. BUG=682167 Review-Url: https://codereview.chromium.org/2650943008 Cr-Commit-Position: refs/heads/master@{#446713} Committed: https://chromium.googlesource.com/chromium/src/+/48e4c328641ba109f490a7375418b5998c4955fb

Patch Set 1 #

Patch Set 2 : Add tests #

Total comments: 4

Patch Set 3 : update #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -5 lines) Patch
M gin/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M gin/v8_platform.cc View 1 2 1 chunk +11 lines, -5 lines 0 comments Download
A gin/v8_platform_unittest.cc View 1 1 chunk +62 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (21 generated)
lpy
alph@, ptal.
3 years, 11 months ago (2017-01-25 00:15:39 UTC) #3
jochen (gone - plz use gerrit)
shall we take this opportunity and start adding unit tests for the v8_platform?
3 years, 11 months ago (2017-01-25 12:18:16 UTC) #7
lpy
On 2017/01/25 12:18:16, jochen (travelling til Feb 4) wrote: > shall we take this opportunity ...
3 years, 11 months ago (2017-01-25 21:59:14 UTC) #9
alph
lgtm % nit https://codereview.chromium.org/2650943008/diff/20001/gin/v8_platform.cc File gin/v8_platform.cc (right): https://codereview.chromium.org/2650943008/diff/20001/gin/v8_platform.cc#newcode223 gin/v8_platform.cc:223: observers_.insert(observer); Can you please move this ...
3 years, 11 months ago (2017-01-25 22:39:06 UTC) #11
lpy
https://codereview.chromium.org/2650943008/diff/20001/gin/v8_platform.cc File gin/v8_platform.cc (right): https://codereview.chromium.org/2650943008/diff/20001/gin/v8_platform.cc#newcode223 gin/v8_platform.cc:223: observers_.insert(observer); On 2017/01/25 22:39:06, alph wrote: > Can you ...
3 years, 11 months ago (2017-01-25 23:11:15 UTC) #12
alph
https://codereview.chromium.org/2650943008/diff/20001/gin/v8_platform.cc File gin/v8_platform.cc (right): https://codereview.chromium.org/2650943008/diff/20001/gin/v8_platform.cc#newcode223 gin/v8_platform.cc:223: observers_.insert(observer); On 2017/01/25 23:11:15, lpy wrote: > On 2017/01/25 ...
3 years, 11 months ago (2017-01-25 23:26:32 UTC) #13
lpy
Thanks, ptal. https://codereview.chromium.org/2650943008/diff/20001/gin/v8_platform.cc File gin/v8_platform.cc (right): https://codereview.chromium.org/2650943008/diff/20001/gin/v8_platform.cc#newcode223 gin/v8_platform.cc:223: observers_.insert(observer); On 2017/01/25 23:26:32, alph wrote: > ...
3 years, 11 months ago (2017-01-26 02:26:41 UTC) #17
jochen (gone - plz use gerrit)
awesome, thx lgtm
3 years, 11 months ago (2017-01-27 04:09:18 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2650943008/40001
3 years, 10 months ago (2017-01-27 18:14:48 UTC) #28
commit-bot: I haz the power
3 years, 10 months ago (2017-01-27 18:23:07 UTC) #31
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/48e4c328641ba109f490a7375418...

Powered by Google App Engine
This is Rietveld 408576698