StorageBasic allocation logic now reports number of elements
When looking at allocations it is useful to have memory size and the number of elements so you can figure out what type/sizeof(type) is being allocated
This commit is contained in:
parent
f3536e44f8
commit
d5dc414e74
@ -225,8 +225,9 @@ void StorageBasicBase::AllocateValues(vtkm::Id numberOfValues, vtkm::UInt64 size
|
||||
throw vtkm::cont::ErrorBadAllocation("Could not allocate basic control array.");
|
||||
}
|
||||
VTKM_LOG_F(vtkm::cont::LogLevel::MemCont,
|
||||
"Allocated control array of %s.",
|
||||
vtkm::cont::GetSizeString(allocsize).c_str());
|
||||
"Allocated control array of %s. [element count %llu]",
|
||||
vtkm::cont::GetSizeString(allocsize).c_str(),
|
||||
numberOfValues);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user