LCOV - code coverage report
Current view: top level - aicpu_schedule/stub - aicpusd_profiler.cpp (source / functions) Coverage Total Hit
Test: coverage.info Lines: 89.5 % 19 17
Test Date: 2026-08-12 11:05:02 Functions: 71.4 % 7 5

            Line data    Source code
       1              : /**
       2              :  * Copyright (c) 2025 Huawei Technologies Co., Ltd.
       3              :  * This program is free software, you can redistribute it and/or modify it under the terms and conditions of
       4              :  * CANN Open Software License Agreement Version 2.0 (the "License").
       5              :  * Please refer to the License for details. You may not use this file except in compliance with the License.
       6              :  * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED,
       7              :  * INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
       8              :  * See LICENSE in the root of the software repository for the full text of the License.
       9              :  */
      10              : 
      11              : #include "aicpusd_profiler.h"
      12              : #include "aicpusd_common.h"
      13              : 
      14              : namespace AicpuSchedule {
      15              : /**
      16              :  * @ingroup AicpuProfiler
      17              :  * @brief it is used to construct a object of AicpuScheduleCore.
      18              :  */
      19           18 : AicpuProfiler::AicpuProfiler() noexcept
      20           18 :     : pid_(0),
      21           18 :       tid_(0),
      22           18 :       kernelTrack_({}),
      23           18 :       frequence_(0.0),
      24           18 :       hiperfExisted_(false),
      25           18 :       accessHiperfSo_(false),
      26           18 :       oneMsForTick_(0UL),
      27           18 :       tenMsForTick_(0UL)
      28           18 : {}
      29              : 
      30           22 : void AicpuProfiler::Uninit() {}
      31              : 
      32          137 : void AicpuProfiler::InitProfiler(pid_t pid, pid_t tid)
      33              : {
      34          137 :     pid_ = pid;
      35          137 :     tid_ = tid;
      36          137 : }
      37              : 
      38           29 : void AicpuProfiler::ProfilerAgentInit() {}
      39              : 
      40          137 : void AicpuProfiler::Profiler() {}
      41              : 
      42            0 : uint64_t AicpuProfiler::SchedGetCurCpuTick(void) const { return 0UL; }
      43              : 
      44            0 : uint64_t AicpuProfiler::GetAicpuSysFreq() const { return 1UL; }
      45              : 
      46              : thread_local AicpuProfiler g_aicpuProfiler;
      47              : } // namespace AicpuSchedule
        

Generated by: LCOV version 2.0-1