11/*
2- * Copyright (c) 2021-2022 Arm Limited.
2+ * Copyright (c) 2021-2022, 2025 Arm Limited.
33 *
44 * SPDX-License-Identifier: MIT
55 *
2222 * SOFTWARE.
2323 */
2424
25+ #include " src/common/utils/profile/acl_profile.h"
2526#include " src/cpu/kernels/crop/generic/neon/impl.h"
2627#include " src/cpu/kernels/crop/list.h"
2728
@@ -39,8 +40,9 @@ void u8_in_bounds_crop_window(const ITensor *input,
3940 bool input_has_single_channel,
4041 bool is_width_flipped)
4142{
42- return in_bounds_crop_window<uint8_t >(input, output, output_ptr, input_offset, window_step_x, output_width_start,
43- output_width_limit, input_has_single_channel, is_width_flipped);
43+ ARM_COMPUTE_TRACE_EVENT (ARM_COMPUTE_PROF_CAT_CPU, ARM_COMPUTE_PROF_LVL_CPU, " u8_in_bounds_crop_window" );
44+ in_bounds_crop_window<uint8_t >(input, output, output_ptr, input_offset, window_step_x, output_width_start,
45+ output_width_limit, input_has_single_channel, is_width_flipped);
4446}
4547
4648void u16_in_bounds_crop_window (const ITensor *input,
@@ -53,8 +55,9 @@ void u16_in_bounds_crop_window(const ITensor *input,
5355 bool input_has_single_channel,
5456 bool is_width_flipped)
5557{
56- return in_bounds_crop_window<uint16_t >(input, output, output_ptr, input_offset, window_step_x, output_width_start,
57- output_width_limit, input_has_single_channel, is_width_flipped);
58+ ARM_COMPUTE_TRACE_EVENT (ARM_COMPUTE_PROF_CAT_CPU, ARM_COMPUTE_PROF_LVL_CPU, " u16_in_bounds_crop_window" );
59+ in_bounds_crop_window<uint16_t >(input, output, output_ptr, input_offset, window_step_x, output_width_start,
60+ output_width_limit, input_has_single_channel, is_width_flipped);
5861}
5962
6063void u32_in_bounds_crop_window (const ITensor *input,
@@ -67,8 +70,9 @@ void u32_in_bounds_crop_window(const ITensor *input,
6770 bool input_has_single_channel,
6871 bool is_width_flipped)
6972{
70- return in_bounds_crop_window<uint32_t >(input, output, output_ptr, input_offset, window_step_x, output_width_start,
71- output_width_limit, input_has_single_channel, is_width_flipped);
73+ ARM_COMPUTE_TRACE_EVENT (ARM_COMPUTE_PROF_CAT_CPU, ARM_COMPUTE_PROF_LVL_CPU, " u32_in_bounds_crop_window" );
74+ in_bounds_crop_window<uint32_t >(input, output, output_ptr, input_offset, window_step_x, output_width_start,
75+ output_width_limit, input_has_single_channel, is_width_flipped);
7276}
7377
7478void s8_in_bounds_crop_window (const ITensor *input,
@@ -81,8 +85,9 @@ void s8_in_bounds_crop_window(const ITensor *input,
8185 bool input_has_single_channel,
8286 bool is_width_flipped)
8387{
84- return in_bounds_crop_window<int8_t >(input, output, output_ptr, input_offset, window_step_x, output_width_start,
85- output_width_limit, input_has_single_channel, is_width_flipped);
88+ ARM_COMPUTE_TRACE_EVENT (ARM_COMPUTE_PROF_CAT_CPU, ARM_COMPUTE_PROF_LVL_CPU, " s8_in_bounds_crop_window" );
89+ in_bounds_crop_window<int8_t >(input, output, output_ptr, input_offset, window_step_x, output_width_start,
90+ output_width_limit, input_has_single_channel, is_width_flipped);
8691}
8792
8893void s16_in_bounds_crop_window (const ITensor *input,
@@ -95,8 +100,9 @@ void s16_in_bounds_crop_window(const ITensor *input,
95100 bool input_has_single_channel,
96101 bool is_width_flipped)
97102{
98- return in_bounds_crop_window<int16_t >(input, output, output_ptr, input_offset, window_step_x, output_width_start,
99- output_width_limit, input_has_single_channel, is_width_flipped);
103+ ARM_COMPUTE_TRACE_EVENT (ARM_COMPUTE_PROF_CAT_CPU, ARM_COMPUTE_PROF_LVL_CPU, " s16_in_bounds_crop_window" );
104+ in_bounds_crop_window<int16_t >(input, output, output_ptr, input_offset, window_step_x, output_width_start,
105+ output_width_limit, input_has_single_channel, is_width_flipped);
100106}
101107
102108void s32_in_bounds_crop_window (const ITensor *input,
@@ -109,8 +115,9 @@ void s32_in_bounds_crop_window(const ITensor *input,
109115 bool input_has_single_channel,
110116 bool is_width_flipped)
111117{
112- return in_bounds_crop_window<int32_t >(input, output, output_ptr, input_offset, window_step_x, output_width_start,
113- output_width_limit, input_has_single_channel, is_width_flipped);
118+ ARM_COMPUTE_TRACE_EVENT (ARM_COMPUTE_PROF_CAT_CPU, ARM_COMPUTE_PROF_LVL_CPU, " s32_in_bounds_crop_window" );
119+ in_bounds_crop_window<int32_t >(input, output, output_ptr, input_offset, window_step_x, output_width_start,
120+ output_width_limit, input_has_single_channel, is_width_flipped);
114121}
115122} // namespace cpu
116123} // namespace arm_compute
0 commit comments