A-Tune/tools/plugin_api_man.py
Zhipeng Xie 4335408875 atune: init code
upload code to gitee

Signed-off-by: Zhipeng Xie <xiezhipeng1@huawei.com>
2019-11-13 17:14:15 +08:00

39 lines
975 B
Python
Executable File

#!/usr/bin/python3
# -*- coding: utf-8 -*-
# Copyright (c) 2019 Huawei Technologies Co., Ltd.
# A-Tune is licensed under the Mulan PSL v1.
# You can use this software according to the terms and conditions of the Mulan PSL v1.
# You may obtain a copy of Mulan PSL v1 at:
# http://license.coscl.org.cn/MulanPSL
# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR
# PURPOSE.
# See the Mulan PSL v1 for more details.
# Create: 2019-10-29
"""
Temporary tool to generate the api help info, will be replaced by Sphinx.
"""
import sys
sys.path.insert(0, "./../analysis/")
from plugin.plugin import CPI, MPI
print("The CPI & MPI api manual")
print("========================\n")
cpi = CPI()
help(cpi)
cpis = cpi.get_configurators()
for i in cpis:
help(i)
mpi = MPI()
help(mpi)
mpis = mpi.get_monitors()
for i in mpis:
help(i)