当前位置: 首页>>代码示例>>Python>>正文


Python GlancesPlugin.__init__方法代码示例

本文整理汇总了Python中glances.plugins.glances_plugin.GlancesPlugin.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python GlancesPlugin.__init__方法的具体用法?Python GlancesPlugin.__init__怎么用?Python GlancesPlugin.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在glances.plugins.glances_plugin.GlancesPlugin的用法示例。


在下文中一共展示了GlancesPlugin.__init__方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

# 需要导入模块: from glances.plugins.glances_plugin import GlancesPlugin [as 别名]
# 或者: from glances.plugins.glances_plugin.GlancesPlugin import __init__ [as 别名]
    def __init__(self, args=None):
        """Init the quicklook plugin."""
        GlancesPlugin.__init__(self, args=args)

        # We want to display the stat in the curse interface
        self.display_curse = True

        # Init stats
        self.reset()
开发者ID:markandrewj,项目名称:glances,代码行数:11,代码来源:glances_quicklook.py

示例2: __init__

# 需要导入模块: from glances.plugins.glances_plugin import GlancesPlugin [as 别名]
# 或者: from glances.plugins.glances_plugin.GlancesPlugin import __init__ [as 别名]
    def __init__(self, args=None, config=None):
        """Init the plugin."""
        GlancesPlugin.__init__(self, args=args)

        # Set the config instance
        self.config = config

        # We want to display the stat in the curse interface
        self.display_curse = True
开发者ID:LuoZijun,项目名称:glances,代码行数:11,代码来源:glances_help.py

示例3: __init__

# 需要导入模块: from glances.plugins.glances_plugin import GlancesPlugin [as 别名]
# 或者: from glances.plugins.glances_plugin.GlancesPlugin import __init__ [as 别名]
    def __init__(self, args=None):
        """Init the plugin."""
        GlancesPlugin.__init__(self, args=args)

        # We want to display the stat in the curse interface
        self.display_curse = True

        # Set the message position
        self.set_align('bottom')
开发者ID:baiyunping333,项目名称:glances,代码行数:11,代码来源:glances_now.py

示例4: __init__

# 需要导入模块: from glances.plugins.glances_plugin import GlancesPlugin [as 别名]
# 或者: from glances.plugins.glances_plugin.GlancesPlugin import __init__ [as 别名]
    def __init__(self, args=None):
        """Init the plugin."""
        GlancesPlugin.__init__(self, args=args, items_history_list=items_history_list)

        # We want to display the stat in the curse interface
        self.display_curse = True

        # Init the stats
        self.reset()
开发者ID:baiyunping333,项目名称:glances,代码行数:11,代码来源:glances_mem.py

示例5: __init__

# 需要导入模块: from glances.plugins.glances_plugin import GlancesPlugin [as 别名]
# 或者: from glances.plugins.glances_plugin.GlancesPlugin import __init__ [as 别名]
    def __init__(self, args=None):
        """Init the plugin."""
        GlancesPlugin.__init__(self, args=args)

        # We want to display the stat in the curse interface
        self.display_curse = True

        # Trying to display proc time
        self.tag_proc_time = True
开发者ID:Efreak,项目名称:glances,代码行数:11,代码来源:glances_processlist.py

示例6: __init__

# 需要导入模块: from glances.plugins.glances_plugin import GlancesPlugin [as 别名]
# 或者: from glances.plugins.glances_plugin.GlancesPlugin import __init__ [as 别名]
    def __init__(self, args=None):
        """Init the plugin."""
        GlancesPlugin.__init__(self, args=args)

        # We dot not want to display the stat in the curse interface
        # The core number is displayed by the load plugin
        self.display_curse = False

        # Init the stat
        self.reset()
开发者ID:baiyunping333,项目名称:glances,代码行数:12,代码来源:glances_core.py

示例7: __init__

# 需要导入模块: from glances.plugins.glances_plugin import GlancesPlugin [as 别名]
# 或者: from glances.plugins.glances_plugin.GlancesPlugin import __init__ [as 别名]
    def __init__(self, args=None):
        """Init the plugin."""
        GlancesPlugin.__init__(self, args=args)

        # We want to display the stat in the curse interface
        self.display_curse = True

        # Init stats
        self.glances_monitors = None
        self.stats = []
开发者ID:baiyunping333,项目名称:glances,代码行数:12,代码来源:glances_monitor.py

示例8: __init__

# 需要导入模块: from glances.plugins.glances_plugin import GlancesPlugin [as 别名]
# 或者: from glances.plugins.glances_plugin.GlancesPlugin import __init__ [as 别名]
    def __init__(self, args=None):
        """Init the plugin."""
        GlancesPlugin.__init__(self, args=args)

        # We want to display the stat in the curse interface
        self.display_curse = True

        # Init stats
        self.reset()
        self.percputime_total_new = []
        self.percputime_new = []
开发者ID:LuoZijun,项目名称:glances,代码行数:13,代码来源:glances_percpu.py

示例9: __init__

# 需要导入模块: from glances.plugins.glances_plugin import GlancesPlugin [as 别名]
# 或者: from glances.plugins.glances_plugin.GlancesPlugin import __init__ [as 别名]
    def __init__(self, args=None):
        """Init the plugin."""
        GlancesPlugin.__init__(self, args=args)

        # We want to display the stat in the curse interface
        self.display_curse = True
        # Set the message position
        # It is NOT the curse position but the Glances column/line
        # Enter -1 to right align
        self.column_curse = 1
        # Enter -1 to diplay bottom
        self.line_curse = 2
开发者ID:BeanYoung,项目名称:glances,代码行数:14,代码来源:glances_processcount.py

示例10: __init__

# 需要导入模块: from glances.plugins.glances_plugin import GlancesPlugin [as 别名]
# 或者: from glances.plugins.glances_plugin.GlancesPlugin import __init__ [as 别名]
    def __init__(self, args=None):
        """Init the plugin."""
        GlancesPlugin.__init__(self, args=args)

        # The plgin can be disable using: args.disable_docker
        self.args = args

        # We want to display the stat in the curse interface
        self.display_curse = True

        # Init the Docker API
        self.docker_client = False
开发者ID:SpaceAppsXploration,项目名称:glances,代码行数:14,代码来源:glances_docker.py

示例11: __init__

# 需要导入模块: from glances.plugins.glances_plugin import GlancesPlugin [as 别名]
# 或者: from glances.plugins.glances_plugin.GlancesPlugin import __init__ [as 别名]
    def __init__(self, args=None):
        """Init the plugin."""
        GlancesPlugin.__init__(self, args=args)

        # We want to display the stat in the curse interface
        self.display_curse = True

        # Set the message position
        self.align = 'right'

        # Init the stats
        self.reset()
开发者ID:Efreak,项目名称:glances,代码行数:14,代码来源:glances_uptime.py

示例12: __init__

# 需要导入模块: from glances.plugins.glances_plugin import GlancesPlugin [as 别名]
# 或者: from glances.plugins.glances_plugin.GlancesPlugin import __init__ [as 别名]
    def __init__(self, args=None):
        """Init the plugin."""
        GlancesPlugin.__init__(self, args=args)

        # Init the sensor class
        self.glancesgrabbat = GlancesGrabBat()

        # We do not want to display the stat in a dedicated area
        # The HDD temp is displayed within the sensors plugin
        self.display_curse = False

        # Init stats
        self.reset()
开发者ID:BeanYoung,项目名称:glances,代码行数:15,代码来源:glances_batpercent.py

示例13: __init__

# 需要导入模块: from glances.plugins.glances_plugin import GlancesPlugin [as 别名]
# 或者: from glances.plugins.glances_plugin.GlancesPlugin import __init__ [as 别名]
    def __init__(self, args=None, config=None):
        """Init the plugin."""
        GlancesPlugin.__init__(self, args=args)

        # Set the config instance
        self.config = config

        # We want to display the stat in the curse interface
        self.display_curse = True

        # init data dictionary
        self.view_data = {}
        self.generate_view_data()
开发者ID:Exasis,项目名称:glances,代码行数:15,代码来源:glances_help.py

示例14: __init__

# 需要导入模块: from glances.plugins.glances_plugin import GlancesPlugin [as 别名]
# 或者: from glances.plugins.glances_plugin.GlancesPlugin import __init__ [as 别名]
    def __init__(self, args=None):
        """Init the plugin."""
        GlancesPlugin.__init__(self, args=args, items_history_list=items_history_list)

        # We want to display the stat in the curse interface
        self.display_curse = True

        # Init stats
        self.reset()

        # Call CorePlugin in order to display the core number
        try:
            self.nb_log_core = CorePlugin(args=self.args).update()["log"]
        except Exception:
            self.nb_log_core = 0
开发者ID:LuoZijun,项目名称:glances,代码行数:17,代码来源:glances_load.py

示例15: __init__

# 需要导入模块: from glances.plugins.glances_plugin import GlancesPlugin [as 别名]
# 或者: from glances.plugins.glances_plugin.GlancesPlugin import __init__ [as 别名]
    def __init__(self, args=None):
        """Init the plugin."""
        GlancesPlugin.__init__(self, args=args)

        # We want to display the stat in the curse interface
        self.display_curse = True

        # Trying to display proc time
        self.tag_proc_time = True

        # Call CorePlugin to get the core number (needed when not in IRIX mode / Solaris mode)
        try:
            self.nb_log_core = CorePlugin(args=self.args).update()["log"]
        except Exception:
            self.nb_log_core = 0
开发者ID:Exasis,项目名称:glances,代码行数:17,代码来源:glances_processlist.py


注:本文中的glances.plugins.glances_plugin.GlancesPlugin.__init__方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。