tree: b69cfb606c39d74812c75f0b9f0a1249d4cccc77 [path history] [tgz]
  1. policies/
  2. page_node_impl_browsertest.cc
  3. README.md
chrome/browser/performance_manager/graph/README.md

Threading Model

The graph can only be accessed from a single sequence.

Nodes can be created on any sequence, but as soon as they‘re added to a graph, they can only be used on the graph’s sequence, with the exception of the id accessor.

Node Lifetime

With the exception of the system node, which is a singleton, the GraphImpl does not own nodes. The user of the graph is responsible for maintaining node ownership. Any node that has been added to the graph, must be removed from the graph with GraphImpl::RemoveNode before it's deleted. All nodes must be removed from the graph before the graph is destroyed.