|
Worker: Connect UseCounter to workers and worklets
This is a preparation CL for UseCounter support on workers and worklets, and
does not actually record API use on them yet.
This CL introduces new interfaces WorkerOrWorkletGlobalScope::countFeature() and
WorkerReportingProxy::countFeature() so that UseCounter can transparently report
API use to workers and worklets. After this change, call paths are as follows
(TODO comments will be addressed by subsequent CLs):
For DedicatedWorkers (Note: UseCounter is already enabled on DedicatedWorkers)
- UseCounter::countFeature()
- WorkerGlobalScope::countFeature()
- InProcessWorkerObjectProxy::countFeature()
- (Worker Thread -> Main Thread)
- ThreadedMessagingProxyBase::countFeature()
- Record API use in a parent document's UseCounter.
For SharedWorkers
- UseCounter::countFeature()
- WorkerGlobalScope::countFeature()
- WebSharedWorkerImpl::countFeature()
- TODO: Send an IPC message to the browser process and ask each connected
document to record API use in its UseCounter.
For ServiceWorkers
- UseCounter::countFeature()
- WorkerGlobalScope::countFeature()
- ServiceWorkerGlobalScopeProxy::countFeature()
- TODO: Send an IPC message to the browser process and ask each controlled
document to record API use in its UseCounter.
For MainThreadWorklets
- UseCounter::countFeature()
- MainThreadWorkletGlobalScope::countFeature()
- TODO: A parent document is on the same thread, so just record API use in the
document's UseCounter.
For ThreadedWorklets
- UseCounter::countFeature()
- ThreadedWorkletGlobalScope::countFeature()
- ThreadedWorkletObjectProxy::countFeature()
- TODO: Post a task to report API use to a parent document on the main
thread like DedicatedWorkers.
BUG= 376039, 667357
Committed: https://crrev.com/258056d1132c92efb77d9f93f26d19b33d438039
Cr-Commit-Position: refs/heads/master@{#436490}
Total comments: 16
Total comments: 5
Total comments: 3
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+164 lines, -62 lines) |
Patch |
 |
M |
third_party/WebKit/Source/core/dom/ExecutionContext.h
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/frame/UseCounter.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+2 lines, -6 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/frame/UseCounter.cpp
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/workers/BUILD.gn
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/workers/DedicatedWorkerGlobalScope.h
|
View
|
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/workers/DedicatedWorkerGlobalScope.cpp
|
View
|
|
1 chunk |
+0 lines, -10 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/workers/InProcessWorkerObjectProxy.h
|
View
|
1
|
2 chunks |
+2 lines, -6 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/workers/MainThreadWorkletGlobalScope.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/workers/MainThreadWorkletGlobalScope.cpp
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+15 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/workers/ThreadedWorkletGlobalScope.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/workers/ThreadedWorkletGlobalScope.cpp
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+13 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/workers/ThreadedWorkletObjectProxy.h
|
View
|
1
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/workers/ThreadedWorkletObjectProxy.cpp
|
View
|
1
|
1 chunk |
+12 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/workers/WorkerGlobalScope.h
|
View
|
1
2
3
4
5
6
7
|
4 chunks |
+2 lines, -6 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp
|
View
|
1
2
3
4
5
6
7
|
4 chunks |
+13 lines, -28 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/workers/WorkerOrWorkletGlobalScope.h
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+21 lines, -0 lines |
0 comments
|
Download
|
 |
A |
third_party/WebKit/Source/core/workers/WorkerOrWorkletGlobalScope.cpp
|
View
|
1
2
3
4
5
6
|
1 chunk |
+35 lines, -0 lines |
3 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/workers/WorkerReportingProxy.h
|
View
|
1
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/workers/WorkerThreadTestHelper.h
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/modules/compositorworker/AnimationWorkletThreadTest.cpp
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/modules/webaudio/AudioWorkletThreadTest.cpp
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.h
|
View
|
1
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp
|
View
|
1
2
3
4
|
1 chunk |
+12 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/web/WebSharedWorkerImpl.h
|
View
|
1
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp
|
View
|
1
2
3
4
|
1 chunk |
+12 lines, -0 lines |
0 comments
|
Download
|
Total messages: 58 (41 generated)
|