Trace.h file
Namespaces
- namespace atlas
- Contains all atlas classes and methods.
- namespace atlas::runtime
- namespace atlas::runtime::trace
Classes
- struct atlas::runtime::trace::TraceTraits
- class atlas::Trace
Defines
- #define ATLAS_TRACE(...)
- #define ATLAS_TRACE_SCOPE(...)
- #define ATLAS_TRACE_BARRIERS(enabled)
Define documentation
#define ATLAS_TRACE(...)
Create scoped trace objects
Example:
void foo() {
ATLAS_TRACE();
// trace "foo" starts
/* interesting computations ... *‍/
ATLAS_TRACE_SCOPE("bar") {
// trace "bar" starts
/* interesting computations ... *‍/
// trace "bar" ends
}
// trace "foo" ends
}
Example 2:
void foo() {
ATLAS_TRACE("custom");
// trace "custom" starts
/* interesting computations ... *‍/
// trace "custom" ends
}