Open Deep Learning API
Loading...
Searching...
No Matches
odla_profiler.h
Go to the documentation of this file.
1//===- odla_profiler.h ----------------------------------------------------===//
2//
3// Copyright (C) 2019-2020 Alibaba Group Holding Limited.
4//
5// Licensed under the Apache License, Version 2.0 (the "License");
6// you may not use this file except in compliance with the License.
7// You may obtain a copy of the License at
8//
9// http://www.apache.org/licenses/LICENSE-2.0
10//
11// Unless required by applicable law or agreed to in writing, software
12// distributed under the License is distributed on an "AS IS" BASIS,
13// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14// See the License for the specific language governing permissions and
15// limitations under the License.
16// =============================================================================
17
18#ifndef _ODLA_PROFILER_H_
19#define _ODLA_PROFILER_H_
20
21#include <ODLA/odla_common.h>
22#include <ODLA/odla_device.h>
23
28#ifdef __cplusplus
29extern "C" {
30#endif
31
33typedef struct _odla_device_trace* odla_device_trace;
34
36typedef struct _odla_device_trace_item* odla_device_trace_item;
37
39
44extern ODLA_API_EXPORT odla_status ODLA_API_CALL
46
48
55extern ODLA_API_EXPORT odla_status ODLA_API_CALL
57 odla_device_trace_item device_trace_item, ...);
58
60
65extern ODLA_API_EXPORT odla_status ODLA_API_CALL
67
69
74extern ODLA_API_EXPORT odla_status ODLA_API_CALL
76
78
83extern ODLA_API_EXPORT odla_status ODLA_API_CALL
85
87
92extern ODLA_API_EXPORT odla_status ODLA_API_CALL
94
96
101extern ODLA_API_EXPORT odla_status ODLA_API_CALL
103
105
111extern ODLA_API_EXPORT odla_status ODLA_API_CALL
113
114#ifdef __cplusplus
115} // C extern
116#endif
117
118#endif // _ODLA_PROFILER_H_
#define ODLA_API_EXPORT
API export directives.
Definition: odla_common.h:172
odla_status
Return status.
Definition: odla_common.h:140
struct _odla_device * odla_device
Device object.
Definition: odla_device.h:98
ODLA_API_EXPORT odla_status ODLA_API_CALL odla_AsyncStopDeviceProfiler(odla_device device)
Asynchronously stop the profiler tracing on a device.
ODLA_API_EXPORT odla_status ODLA_API_CALL odla_SetDeviceTraceItem(odla_device_trace device_trace, odla_device_trace_item device_trace_item,...)
Set the device trace with a property item.
ODLA_API_EXPORT odla_status ODLA_API_CALL odla_ReleaseDeviceTrace(odla_device_trace device_trace)
Release a created device_trace.
ODLA_API_EXPORT odla_status ODLA_API_CALL odla_CreateDeviceTrace(odla_device_trace *device_trace)
Create a device_trace object.
ODLA_API_EXPORT odla_status ODLA_API_CALL odla_StopDeviceProfiler(odla_device device)
Stop the profiler tracing on a device.
ODLA_API_EXPORT odla_status ODLA_API_CALL odla_RetrieveDeviceTrace(odla_device device, odla_device_trace *device_trace)
Retrieve the profiling trace from a device.
ODLA_API_EXPORT odla_status ODLA_API_CALL odla_StartDeviceProfiler(odla_device device)
Start the profiler tracing on a device.
ODLA_API_EXPORT odla_status ODLA_API_CALL odla_AsyncStartDeviceProfiler(odla_device device)
Asynchronously start the profiler tracing on a device.
struct _odla_device_trace_item * odla_device_trace_item
Device trace item object.
Definition: odla_profiler.h:36
struct _odla_device_trace * odla_device_trace
Device trace object.
Definition: odla_profiler.h:33