Add scope logs for building locators

This commit is contained in:
Kenneth Moreland 2020-10-13 11:08:12 -06:00
parent 2712c105de
commit c60cae3b87
3 changed files with 6 additions and 0 deletions

@ -229,6 +229,8 @@ CellLocatorBoundingIntervalHierarchy::~CellLocatorBoundingIntervalHierarchy() =
void CellLocatorBoundingIntervalHierarchy::Build()
{
VTKM_LOG_SCOPE(vtkm::cont::LogLevel::Perf, "CellLocatorBoundingIntervalHierarchy::Build");
vtkm::cont::Invoker invoker;
vtkm::cont::DynamicCellSet cellSet = this->GetCellSet();

@ -347,6 +347,8 @@ namespace cont
///
VTKM_CONT void CellLocatorTwoLevel::Build()
{
VTKM_LOG_SCOPE(vtkm::cont::LogLevel::Perf, "CellLocatorTwoLevel::Build");
vtkm::cont::Invoker invoke;
auto cellset = this->GetCellSet();

@ -61,6 +61,8 @@ private:
void PointLocatorSparseGrid::Build()
{
VTKM_LOG_SCOPE(vtkm::cont::LogLevel::Perf, "PointLocatorSparseGrid::Build");
if (this->IsRangeInvalid())
{
this->Range = this->GetCoordinates().GetRange();