summaryrefslogtreecommitdiff
path: root/chromium/components/performance_manager/README.md
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2020-10-12 14:27:29 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2020-10-13 09:35:20 +0000
commitc30a6232df03e1efbd9f3b226777b07e087a1122 (patch)
treee992f45784689f373bcc38d1b79a239ebe17ee23 /chromium/components/performance_manager/README.md
parent7b5b123ac58f58ffde0f4f6e488bcd09aa4decd3 (diff)
downloadqtwebengine-chromium-85-based.tar.gz
BASELINE: Update Chromium to 85.0.4183.14085-based
Change-Id: Iaa42f4680837c57725b1344f108c0196741f6057 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/components/performance_manager/README.md')
-rw-r--r--chromium/components/performance_manager/README.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/chromium/components/performance_manager/README.md b/chromium/components/performance_manager/README.md
index ffdf8bd6818..21efe71dab4 100644
--- a/chromium/components/performance_manager/README.md
+++ b/chromium/components/performance_manager/README.md
@@ -94,6 +94,20 @@ A simple example Decorator might periodically measure the cumulative CPU usage
for each process Node in the Graph and adorn each node with the measured
cumulative CPU usage of the corresponding process.
+Decorators can make data available to consumers by updating core properties of
+a node or by exposing their own custom API. A common interface is to provide an
+associated Data class, with a static accessor to retrieve a Data object from a
+given Node. See
+[PageLiveStateDecorator::Data](public/decorators/page_live_state_decorator.h)
+for an example.
+
+## Observers
+
+Each node type provides an observer interface that callers can implement to
+receive notifications when core node properties change. Data that is exposed
+through a decorator or Node Attached Data may or may not provide change
+notifications depending on the details of the decorator's API.
+
## Aggregators
Aggregators, like Decorators, set properties on the graph nodes. The difference is that