LCOV - code coverage report
Current view: top level - acl/aclrt_impl/toolchain - dump.h (source / functions) Coverage Total Hit
Test: coverage.info Lines: 100.0 % 2 2
Test Date: 2026-07-28 10:53:01 Functions: 100.0 % 2 2

            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              : #ifndef ACL_DUMP_H_
      12              : #define ACL_DUMP_H_
      13              : 
      14              : #include <string>
      15              : #include <vector>
      16              : #include "acl/acl_base.h"
      17              : #include "common/log_inner.h"
      18              : 
      19              : namespace acl {
      20              : class AclDump {
      21              : public:
      22              :     static aclError HandleDumpConfig(const char_t* const configPath);
      23              :     static AclDump& GetInstance();
      24           31 :     void SetAdxInitFromAclInitFlag(const bool flag) { adxInitFromAclInitFlag_ = flag; }
      25           29 :     bool GetAdxInitFromAclInitFlag() const { return adxInitFromAclInitFlag_; }
      26              : 
      27              : private:
      28              :     static aclError HandleDumpCommand(const char* configStr, size_t size, const char* configPath);
      29              :     bool adxInitFromAclInitFlag_ = false;
      30              :     ~AclDump() = default;
      31              :     AclDump() = default;
      32              : };
      33              : } // namespace acl
      34              : 
      35              : #endif // ACL_DUMP_H_
        

Generated by: LCOV version 2.0-1