Log the computation of ranges in fields and arrays

This commit is contained in:
Kenneth Moreland 2020-10-12 15:35:58 -06:00
parent bef55f8ee3
commit f5c5b61880
2 changed files with 4 additions and 0 deletions

@ -47,6 +47,8 @@ inline vtkm::cont::ArrayHandle<vtkm::Range> ArrayRangeComputeImpl(
const vtkm::cont::ArrayHandle<T, S>& input,
vtkm::cont::DeviceAdapterId device)
{
VTKM_LOG_SCOPE(vtkm::cont::LogLevel::Perf, "ArrayRangeCompute");
using VecTraits = vtkm::VecTraits<T>;
using CT = typename VecTraits::ComponentType;
//We want to minimize the amount of code that we do in try execute as

@ -156,6 +156,8 @@ private:
{
VTKM_IS_LIST(TypeList);
VTKM_LOG_SCOPE(vtkm::cont::LogLevel::Perf, "Field::GetRange");
if (this->ModifiedFlag)
{
vtkm::cont::CastAndCall(