diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/arm_profiler/include/arm_profiler.hpp | 7 | ||||
-rw-r--r-- | lib/arm_profiler/src/arm_profiler.cpp | 7 |
2 files changed, 6 insertions, 8 deletions
diff --git a/lib/arm_profiler/include/arm_profiler.hpp b/lib/arm_profiler/include/arm_profiler.hpp index 9c7b5f3..9d9f543 100644 --- a/lib/arm_profiler/include/arm_profiler.hpp +++ b/lib/arm_profiler/include/arm_profiler.hpp @@ -1,6 +1,5 @@ /* - * SPDX-FileCopyrightText: Copyright 2021-2022 Arm Limited and/or its affiliates <open-source-office@arm.com> - * + * SPDX-FileCopyrightText: Copyright 2021-2022, 2024 Arm Limited and/or its affiliates <open-source-office@arm.com> * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may @@ -36,8 +35,8 @@ public: private: size_t max_events_; std::unique_ptr<const char *[]> tags_; - std::unique_ptr<int32_t[]> start_ticks_; - std::unique_ptr<int32_t[]> end_ticks_; + std::unique_ptr<uint32_t[]> start_ticks_; + std::unique_ptr<uint32_t[]> end_ticks_; size_t num_events_; diff --git a/lib/arm_profiler/src/arm_profiler.cpp b/lib/arm_profiler/src/arm_profiler.cpp index 2977474..d09cdf0 100644 --- a/lib/arm_profiler/src/arm_profiler.cpp +++ b/lib/arm_profiler/src/arm_profiler.cpp @@ -1,6 +1,5 @@ /* - * Copyright (c) 2021-2022 Arm Limited. All rights reserved. - * + * SPDX-FileCopyrightText: Copyright 2021-2022, 2024 Arm Limited and/or its affiliates <open-source-office@arm.com> * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may @@ -30,8 +29,8 @@ namespace tflite { ArmProfiler::ArmProfiler(size_t max_events) : max_events_(max_events), num_events_(0) { tags_ = std::make_unique<const char *[]>(max_events_); - start_ticks_ = std::make_unique<int32_t[]>(max_events_); - end_ticks_ = std::make_unique<int32_t[]>(max_events_); + start_ticks_ = std::make_unique<uint32_t[]>(max_events_); + end_ticks_ = std::make_unique<uint32_t[]>(max_events_); } uint32_t ArmProfiler::BeginEvent(const char *tag) { |