[Openmp-commits] [PATCH] D93055: [OpenMP] Add time profiling for libomptarget
Giorgis Georgakoudis via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Fri Dec 11 10:55:03 PST 2020
ggeorgakoudis marked an inline comment as done.
ggeorgakoudis 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
----------------
protze.joachim wrote:
> Then use it like:
>
> ```
> TIMESCOPE();
> ```
> ?
Thanks! That's indeed much nicer.
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