LCOV - code coverage report
Current view: top level - aicpu_schedule/stub - aicpusd_profiler.cpp (source / functions) Coverage Total Hit
Test: coverage.info Lines: 80.0 % 20 16
Test Date: 2026-07-28 10:54:05 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           19 :     AicpuProfiler::AicpuProfiler() noexcept
      20           19 :         : pid_(0),
      21           19 :           tid_(0),
      22           19 :           kernelTrack_({}),
      23           19 :           frequence_(0.0),
      24           19 :           hiperfExisted_(false),
      25           19 :           accessHiperfSo_(false),
      26           19 :           oneMsForTick_(0UL),
      27           19 :           tenMsForTick_(0UL) {}
      28              : 
      29           22 :     void AicpuProfiler::Uninit() {}
      30              : 
      31          137 :     void AicpuProfiler::InitProfiler(pid_t pid, pid_t tid)
      32              :     {
      33          137 :         pid_ = pid;
      34          137 :         tid_ = tid;
      35          137 :     }
      36              : 
      37           29 :     void AicpuProfiler::ProfilerAgentInit() {}
      38              : 
      39          136 :     void AicpuProfiler::Profiler() {}
      40              : 
      41            0 :     uint64_t AicpuProfiler::SchedGetCurCpuTick(void) const
      42              :     {
      43            0 :         return 0UL;
      44              :     }
      45              : 
      46            0 :     uint64_t AicpuProfiler::GetAicpuSysFreq() const
      47              :     {
      48            0 :         return 1UL;
      49              :     }
      50              : 
      51              :     thread_local AicpuProfiler g_aicpuProfiler;
      52              : }
        

Generated by: LCOV version 2.0-1