rocprofiler-sdk/deprecated/profile_config.h Source File

rocprofiler-sdk/deprecated/profile_config.h Source File#

ROCprofiler-SDK developer API: rocprofiler-sdk/deprecated/profile_config.h Source File
ROCprofiler-SDK developer API 1.0.0
ROCm Profiling API and tools
profile_config.h
1// MIT License
2//
3// Copyright (c) 2023-2025 Advanced Micro Devices, Inc. All rights reserved.
4//
5// Permission is hereby granted, free of charge, to any person obtaining a copy
6// of this software and associated documentation files (the "Software"), to deal
7// in the Software without restriction, including without limitation the rights
8// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9// copies of the Software, and to permit persons to whom the Software is
10// furnished to do so, subject to the following conditions:
11//
12// The above copyright notice and this permission notice shall be included in all
13// copies or substantial portions of the Software.
14//
15// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21// SOFTWARE.
22
23#pragma once
24
25#include <rocprofiler-sdk/counter_config.h>
26#include <rocprofiler-sdk/defines.h>
27#include <rocprofiler-sdk/fwd.h>
28
29ROCPROFILER_EXTERN_C_INIT
30
31/**
32 * @brief (deprecated) Replaced by ::rocprofiler_create_counter_config.
33 *
34 */
35ROCPROFILER_SDK_DEPRECATED("profile_config renamed to counter_config")
36static inline rocprofiler_status_t
37rocprofiler_create_profile_config(rocprofiler_agent_id_t agent_id,
38 rocprofiler_counter_id_t* counters_list,
39 size_t counters_count,
40 rocprofiler_profile_config_id_t* config_id)
41{
42 return rocprofiler_create_counter_config(agent_id, counters_list, counters_count, config_id);
43}
44
45/**
46 * @brief (deprecated) Replaced by ::rocprofiler_destroy_counter_config.
47 *
48 */
49ROCPROFILER_SDK_DEPRECATED("profile_config renamed to counter_config")
50static inline rocprofiler_status_t
51rocprofiler_destroy_profile_config(rocprofiler_profile_config_id_t config_id)
52{
53 return rocprofiler_destroy_counter_config(config_id);
54}
55
56ROCPROFILER_EXTERN_C_FINI
rocprofiler_status_t
Status codes.
Definition fwd.h:49
Agent Identifier.
Definition fwd.h:677
Counter ID.
Definition fwd.h:685
rocprofiler_status_t rocprofiler_create_counter_config(rocprofiler_agent_id_t agent_id, rocprofiler_counter_id_t *counters_list, unsigned long counters_count, rocprofiler_counter_config_id_t *config_id)
(experimental) Create Counter Configuration. A config is bound to an agent but can be used across man...
rocprofiler_status_t rocprofiler_destroy_counter_config(rocprofiler_counter_config_id_t config_id)
(experimental) Destroy Profile Configuration.