commit | 417d037dea037e11cf3f40a3a2d112d0b4220941 | [log] [tgz] |
---|---|---|
author | Chris Hamilton <[email protected]> | Fri Nov 08 17:13:22 2019 |
committer | Commit Bot <[email protected]> | Fri Nov 08 17:13:22 2019 |
tree | 6055c267615a5d6dfcd32535f5460235af65ae7a | |
parent | 0af5fd5b05de67c72b9b00938dbe6134112c2416 [diff] [blame] |
[PM] Add ProcessPriorityPolicy. This creates a policy engine that forwards calculated priority values out of the graph, applying the priorities to RenderProcessHosts (and subsequently to the process itself). BUG=971272 Change-Id: I11c8c040e5382a8fa6881c40f80f6885f26e88df Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1904367 Commit-Queue: Chris Hamilton <[email protected]> Reviewed-by: Sigurður Ásgeirsson <[email protected]> Cr-Commit-Position: refs/heads/master@{#713859}
diff --git a/components/performance_manager/public/graph/graph.h b/components/performance_manager/public/graph/graph.h index 37cd408..e69bdbc 100644 --- a/components/performance_manager/public/graph/graph.h +++ b/components/performance_manager/public/graph/graph.h
@@ -80,6 +80,9 @@ virtual std::vector<const PageNode*> GetAllPageNodes() const = 0; virtual std::vector<const WorkerNode*> GetAllWorkerNodes() const = 0; + // Returns true if the graph is currently empty. + virtual bool IsEmpty() const = 0; + // Returns the associated UKM recorder if it is defined. virtual ukm::UkmRecorder* GetUkmRecorder() const = 0;