Log the computation of ranges in fields and arrays
This commit is contained in:
parent
bef55f8ee3
commit
f5c5b61880
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user