[Openmp-commits] [PATCH] D93055: [OpenMP] Add time profiling for libomptarget
Joachim Protze via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Thu Dec 10 15:16:10 PST 2020
protze.joachim added inline comments.
================
Comment at: openmp/libomptarget/src/api.cpp:16-21
+#ifdef OMPTARGET_PROFILE
+#include "llvm/Support/TimeProfiler.h"
+#define TIMESCOPE llvm::TimeTraceScope TimeScope(__PRETTY_FUNCTION__);
+#else
+#define TIMESCOPE
+#endif
----------------
Then use it like:
```
TIMESCOPE();
```
?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D93055/new/
https://reviews.llvm.org/D93055
More information about the Openmp-commits
mailing list