• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Python tankcore.AbstractPlugin类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: __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
     self.start_time = time.time()
     self.jmeter_buffer_size = None
开发者ID:alepharchives,项目名称:yandex-tank,代码行数:12,代码来源:JMeter.py


示例17: __init__

 def __init__(self, core):
     AbstractPlugin.__init__(self, core)
     self.process = None
     self.phout_import_mode = 0
     self.did_phout_import_try = False
     self.phantom_path = None
     self.eta_file = None
     self.processed_ammo_count = 0
     self.config = None
     self.stepper = None
     self.phantom = None
     self.phantom_start_time = time.time()
开发者ID:denistimofeev,项目名称:yandex-tank,代码行数:12,代码来源:Phantom.py


示例18: __init__

 def __init__(self, core):
     AbstractPlugin.__init__(self, core)
     self.process = None
     self.second_data_listeners = []
     self.preproc_out_offset = 0
     self.buffer = []
     self.second_data_draft = []
     self.preproc_out_filename = None
     self.cumulative_data = SecondAggregateDataTotalItem()
     self.reader = None
     self.time_periods = [ tankcore.expand_to_milliseconds(x) for x in self.default_time_periods.split(' ') ]
     self.last_sample_time = 0
开发者ID:wd5,项目名称:yandex-tank,代码行数:12,代码来源:Aggregator.py


示例19: __init__

    def __init__(self, core):
        self.log = logging.getLogger(__name__)
        AbstractPlugin.__init__(self, core)
        self.gun_type = None
        self.start_time = time.time()
        self.stepper_wrapper = StepperWrapper(self.core, BFGPlugin.SECTION)
        self.log.info("Initialized BFG")

        self.gun_classes = {
            'log': LogGun,
            'sql': SqlGun,
            'custom': CustomGun,
        }
开发者ID:2naive,项目名称:yandex-tank,代码行数:13,代码来源:plugin.py


示例20: __init__

    def __init__(self, core):
        AbstractPlugin.__init__(self, core)
        self.config = None
        self.process = None

        self.predefined_phout = None
        self.phout_import_mode = False
        self.did_phout_import_try = False
        
        self.phantom_path = None
        self.eta_file = None
        self.processed_ammo_count = 0
        self.phantom_start_time = time.time()
        self.buffered_seconds = "2"

        self.phantom = None
        self.cached_info = None
开发者ID:angelina666,项目名称:yandex-tank,代码行数:17,代码来源:Phantom.py



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python models.DBSession类代码示例发布时间:2022-05-27
下一篇:
Python tankcore.expand_to_seconds函数代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap