Home
last modified time | relevance | path

Searched refs:not_owning_sub_size (Results 1 – 3 of 3) sorted by relevance

/external/perfetto/src/trace_processor/importers/memory_tracker/
Dgraph_processor.cc644 node->add_not_owning_sub_size(path_to_child.second->not_owning_sub_size()); in CalculateNodeSubSizes()
685 return a->source()->not_owning_sub_size() < in CalculateNodeOwnershipCoefficient()
686 b->source()->not_owning_sub_size(); in CalculateNodeOwnershipCoefficient()
711 uint64_t not_owning_sub_size = in CalculateNodeOwnershipCoefficient() local
712 (*current_it)->source()->not_owning_sub_size(); in CalculateNodeOwnershipCoefficient()
713 if (not_owning_sub_size > already_attributed_sub_size) { in CalculateNodeOwnershipCoefficient()
715 static_cast<double>(not_owning_sub_size - in CalculateNodeOwnershipCoefficient()
718 already_attributed_sub_size = not_owning_sub_size; in CalculateNodeOwnershipCoefficient()
721 if (not_owning_sub_size != 0) { in CalculateNodeOwnershipCoefficient()
723 static_cast<double>(not_owning_sub_size); in CalculateNodeOwnershipCoefficient()
Dgraph_processor_unittest.cc553 ASSERT_EQ(child_1->not_owning_sub_size(), 4ul); in TEST_F()
556 ASSERT_EQ(child_2->not_owning_sub_size(), 5ul); in TEST_F()
561 ASSERT_EQ(parent_1->not_owning_sub_size(), 4ul); in TEST_F()
564 ASSERT_EQ(parent_2->not_owning_sub_size(), 5ul); in TEST_F()
569 ASSERT_EQ(process_1->root()->not_owning_sub_size(), 0ul); in TEST_F()
572 ASSERT_EQ(process_2->root()->not_owning_sub_size(), 5ul); in TEST_F()
/external/perfetto/include/perfetto/ext/trace_processor/importers/memory_tracker/
Dgraph.h149 uint64_t not_owning_sub_size() const { return not_owning_sub_size_; } in not_owning_sub_size() function