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


Python tankcore.AbstractPlugin类代码示例

本文整理汇总了Python中tankcore.AbstractPlugin的典型用法代码示例。如果您正苦于以下问题:Python AbstractPlugin类的具体用法?Python AbstractPlugin怎么用?Python AbstractPlugin使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: __init__

 def __init__(self, core):
     AbstractPlugin.__init__(self, core)
     self.end = None
     self.poll = None
     self.prepare = None
     self.start = None
     self.postprocess = None
开发者ID:wd5,项目名称:yandex-tank,代码行数:7,代码来源:ShellExec.py

示例2: __init__

 def __init__(self, core):
     '''         Constructor        '''
     AbstractPlugin.__init__(self, core)
     self.interval = "10s"
     self.disk_limit = 2048 # 2 GB
     self.mem_limit = 512 # 0.5 GB
     self.last_check = 0
开发者ID:greggyNapalm,项目名称:yandex-tank,代码行数:7,代码来源:ResourceCheck.py

示例3: __init__

    def __init__(self, core):
        AbstractPlugin.__init__(self, core)
        self.decoder = MonitoringDataDecoder()
        self.mon_data = {}

        def create_storage():
            return {
                'avg': defaultdict(list),
                'quantiles': defaultdict(list),
                'threads': {
                    'active_threads': []
                },
                'rps': {
                    'RPS': []
                },
                'http_codes': defaultdict(list),
                'net_codes': defaultdict(list),
            }

        self.overall = create_storage()
        self.cases = defaultdict(create_storage)
        self.start_time = None
        self.end_time = None
        self.show_graph = None
        self.template = None
开发者ID:sklochkov,项目名称:yandex-tank,代码行数:25,代码来源:Report.py

示例4: __init__

 def __init__(self, core):
     AbstractPlugin.__init__(self, core)
     self.cause_criteria = None
     self.criterias = []
     self.custom_criterias = []
     self.counting = []
     self.criteria_str = ''
开发者ID:pr0n1x,项目名称:yandex-tank,代码行数:7,代码来源:Autostop.py

示例5: __init__

 def __init__(self, core):
     self.log = logging.getLogger(__name__)
     AbstractPlugin.__init__(self, core)
     module_path = self.get_option("module_path")
     module_name = self.get_option("module_name")
     sys.path.append(module_path)
     self.module = __import__(module_name)
开发者ID:MekaGem,项目名称:yandex-tank,代码行数:7,代码来源:guns.py

示例6: __init__

 def __init__(self, core):
     AbstractPlugin.__init__(self, core)
     AbstractInfoWidget.__init__(self)
     lines = open(os.path.dirname(__file__) + '/tips.txt').readlines()
     line = random.choice(lines)
     self.section = line[:line.index(':')]
     self.tip = line[line.index(':') + 1:].strip()
     self.disable = 0
开发者ID:2naive,项目名称:yandex-tank,代码行数:8,代码来源:TipsAndTricks.py

示例7: __init__

 def __init__(self, core):
     AbstractPlugin.__init__(self, core)
     Thread.__init__(self)
     self.daemon = True  # Thread auto-shutdown
     self.port = 8080
     self.last_sec = None
     self.server = None
     self.cache = DataCacher()
开发者ID:MekaGem,项目名称:yandex-tank,代码行数:8,代码来源:plugin.py

示例8: __init__

 def __init__(self, core):
     '''
     Constructor
     '''
     AbstractPlugin.__init__(self, core)
     self.loadosophia = LoadosophiaClient()
     self.loadosophia.results_url = self.REDIR_TO
     self.project_key = None
开发者ID:wd5,项目名称:yandex-tank,代码行数:8,代码来源:Loadosophia.py

示例9: __init__

 def __init__(self, core):
     AbstractPlugin.__init__(self, core)
     self.screen = None
     self.render_exception = None
     self.console_markup = None
     self.remote_translator = None
     self.info_panel_width = '33'
     self.short_only = 0
开发者ID:wd5,项目名称:yandex-tank,代码行数:8,代码来源:ConsoleOnline.py

示例10: __init__

 def __init__(self, core):
     AbstractPlugin.__init__(self, core)
     self.out_file = None
     self.process = None
     self.concurrency = 0
     self.options = None
     self.url = None
     self.requests = None
开发者ID:angelina666,项目名称:yandex-tank,代码行数:8,代码来源:ApacheBenchmark.py

示例11: __init__

 def __init__(self, core):
     AbstractPlugin.__init__(self, core)
     Thread.__init__(self)
     self.daemon = True # Thread auto-shutdown
     self.port = 8080
     self.last_sec = None
     self.server = None
     self.interval = 60
     self.quantiles_data = []
     self.redirect = ''
开发者ID:wd5,项目名称:yandex-tank,代码行数:10,代码来源:WebOnline.py

示例12: __init__

 def __init__(self, core):
     '''
     Constructor
     '''
     AbstractPlugin.__init__(self, core)
     self.loadosophia = LoadosophiaClient()
     self.loadosophia.results_url = None
     self.project_key = None
     self.color = None
     self.title = None
开发者ID:angelina666,项目名称:yandex-tank,代码行数:10,代码来源:Loadosophia.py

示例13: __init__

 def __init__(self, core):
     AbstractPlugin.__init__(self, core)
     self.jmeter_process = None
     self.args = None
     self.original_jmx = None
     self.jtl_file = None
     self.jmx = None
     self.user_args = None
     self.jmeter_path = None
     self.jmeter_log = None
开发者ID:denistimofeev,项目名称:yandex-tank,代码行数:10,代码来源:JMeter.py

示例14: __init__

 def __init__(self, core):
     AbstractPlugin.__init__(self, core)
     self.jobno = None
     self.default_target = None
     self.config = None
     self.process = None
     self.monitoring = MonitoringCollector()
     self.die_on_fail = True
     self.data_file = None
     self.mon_saver = None
开发者ID:denistimofeev,项目名称:yandex-tank,代码行数:10,代码来源:Monitoring.py

示例15: __init__

 def __init__(self, core):
     ''' Constructor '''
     AbstractPlugin.__init__(self, core)
     self.loadosophia = LoadosophiaClient()
     self.loadosophia.results_url = None
     self.project_key = None
     self.color = None
     self.title = None
     self.online_buffer = []
     self.online_initiated = False
     self.online_enabled = False
开发者ID:2naive,项目名称:yandex-tank,代码行数:11,代码来源:Loadosophia.py


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