MCPcopy Create free account
hub / github.com/Snapchat/Valdi / getViewPoolsStats

Method getViewPoolsStats

valdi/src/valdi/runtime/Context/ViewManagerContext.cpp:83–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83ViewPoolsStats ViewManagerContext::getViewPoolsStats() const {
84 ViewPoolsStats stats;
85
86 auto viewFactories = _globalViewFactories->copyViewFactories();
87 for (const auto& viewFactory : viewFactories) {
88 stats[viewFactory->getViewClassName()] = viewFactory->getPoolSize();
89 }
90
91 return stats;
92}
93
94} // namespace Valdi

Callers 2

TEST_PFunction · 0.80
getPooledViewCountFunction · 0.80

Calls 3

copyViewFactoriesMethod · 0.80
getViewClassNameMethod · 0.45
getPoolSizeMethod · 0.45

Tested by 2

TEST_PFunction · 0.64
getPooledViewCountFunction · 0.64