Blender
V4.3
source
blender
depsgraph
intern
eval
deg_eval_stats.cc
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2017 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
9
#include "
intern/eval/deg_eval_stats.h
"
10
11
#include "
BLI_utildefines.h
"
12
13
#include "
intern/depsgraph.hh
"
14
15
#include "
intern/node/deg_node.hh
"
16
#include "
intern/node/deg_node_component.hh
"
17
#include "
intern/node/deg_node_id.hh
"
18
#include "
intern/node/deg_node_operation.hh
"
19
20
namespace
blender::deg
{
21
22
void
deg_eval_stats_aggregate
(
Depsgraph
*graph)
23
{
24
/* Reset current evaluation stats for ID and component nodes.
25
* Those are not filled in by the evaluation engine. */
26
for
(
Node
*node : graph->id_nodes) {
27
IDNode
*
id_node
= (
IDNode
*)node;
28
for
(
ComponentNode
*comp_node :
id_node
->
components
.values()) {
29
comp_node->
stats
.
reset_current
();
30
}
31
id_node
->
stats
.
reset_current
();
32
}
33
/* Now accumulate operation timings to components and IDs. */
34
for
(
OperationNode
*op_node : graph->operations) {
35
ComponentNode
*comp_node = op_node->
owner
;
36
IDNode
*
id_node
= comp_node->
owner
;
37
id_node
->
stats
.
current_time
+= op_node->stats.current_time;
38
comp_node->
stats
.
current_time
+= op_node->stats.current_time;
39
}
40
}
41
42
}
// namespace blender::deg
BLI_utildefines.h
id_node
const IDNode * id_node
Definition
deg_debug_stats_gnuplot.cc:37
deg_eval_stats.h
deg_node.hh
deg_node_component.hh
deg_node_id.hh
deg_node_operation.hh
depsgraph.hh
blender::deg
Definition
DEG_depsgraph_light_linking.hh:18
blender::deg::deg_eval_stats_aggregate
void deg_eval_stats_aggregate(Depsgraph *graph)
Definition
deg_eval_stats.cc:22
blender::deg::ComponentNode
Definition
deg_node_component.hh:33
blender::deg::ComponentNode::owner
IDNode * owner
Definition
deg_node_component.hh:113
blender::deg::Depsgraph
Definition
depsgraph.hh:47
blender::deg::IDNode
Definition
deg_node_id.hh:35
blender::deg::IDNode::components
Map< ComponentIDKey, ComponentNode * > components
Definition
deg_node_id.hh:81
blender::deg::Node::Stats::current_time
double current_time
Definition
deg_node.hh:170
blender::deg::Node::Stats::reset_current
void reset_current()
Definition
deg_node.cc:279
blender::deg::Node
Definition
deg_node.hh:153
blender::deg::Node::stats
Stats stats
Definition
deg_node.hh:182
blender::deg::OperationNode
Definition
deg_node_operation.hh:245
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0