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/export.hpp> // for __SYCL_EXPORT
12 
13 #include <stdint.h> // for uint64_t
14 
15 namespace sycl {
16 inline namespace _V1 {
17 namespace detail {
18 
20 class __SYCL_EXPORT HostProfilingInfo {
21  uint64_t StartTime = 0;
22  uint64_t EndTime = 0;
23 
24 public:
28  uint64_t getStartTime() const { return StartTime; }
32  uint64_t getEndTime() const { return EndTime; }
33 
35  void start();
37  void end();
38 };
39 } // namespace detail
40 } // namespace _V1
41 } // 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.
Definition: access.hpp:18