Skip to content

Commit bf9cac6

Browse files
committed
Annotate MB sizes
1 parent f862c18 commit bf9cac6

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

include/openPMD/backend/ScientificDefaults_internal.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ struct PostProcessConvertedAttributeImpl : PostProcessConvertedAttribute<T>
8787
}
8888
};
8989

90+
// 4, 0.152344
9091
template <typename T, typename Fun>
9192
auto makePostProcessConvertedAttribute(Fun &&fun)
9293
-> std::shared_ptr<PostProcessConvertedAttribute<T>>

src/backend/ScientificDefaults.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ struct to_scalar<std::array<T, N>>
344344
using type = T;
345345
};
346346

347+
// 2, 0.0976562
347348
auto RequireScalar::operator()(
348349
Attributable &record, char const *attrName, Attribute const &attr)
349350
-> std::optional<error::ReadError>
@@ -392,6 +393,7 @@ struct to_vector<std::array<T, N>>
392393
using type = std::vector<T>;
393394
};
394395

396+
// 1, 0.113281
395397
auto RequireVector::operator()(
396398
Attributable &record, char const *attrName, Attribute const &attr)
397399
-> std::optional<error::ReadError>
@@ -435,6 +437,7 @@ auto RequireVector::operator()(
435437
attr.getVariant<attribute_types>());
436438
}
437439

440+
// 3, 0.0117188
438441
template <typename T>
439442
auto RequireType<T>::operator()(
440443
Attributable &record, char const *attrName, Attribute const &attr)

0 commit comments

Comments
 (0)