DPC++ Runtime
Runtime libraries for oneAPI DPC++
host_profiling_info.hpp
Go to the documentation of this file.
1 //==---------- host_profiling_info.hpp - SYCL host profiling ---------------==//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #pragma once
10 
11 #include <sycl/detail/common.hpp>
12 #include <sycl/detail/export.hpp>
13 
14 namespace sycl {
16 namespace detail {
17 
19 class __SYCL_EXPORT HostProfilingInfo {
20  uint64_t StartTime = 0;
21  uint64_t EndTime = 0;
22 
23 public:
27  uint64_t getStartTime() const { return StartTime; }
31  uint64_t getEndTime() const { return EndTime; }
32 
34  void start();
36  void end();
37 };
38 } // namespace detail
39 } // __SYCL_INLINE_VER_NAMESPACE(_V1)
40 } // namespace sycl
Profiling info for the host execution.
uint64_t getStartTime() const
Returns event's start time.
uint64_t getEndTime() const
Returns event's end time.
#define __SYCL_INLINE_VER_NAMESPACE(X)
---— Error handling, matching OpenCL plugin semantics.
Definition: access.hpp:14