程序包 | 说明 |
---|---|
com.nineya.cspeed | |
com.nineya.cspeed.recorder |
限定符和类型 | 方法和说明 |
---|---|
static void |
CSpeed.remove(Recorder recorder)
删除计速器
|
限定符和类型 | 类和说明 |
---|---|
class |
AbstractRecorder |
class |
MultiThreadRecorder |
class |
SimpleRecorder |
限定符和类型 | 字段和说明 |
---|---|
private Recorder |
AbstractRecorder.Collect.recorder |
限定符和类型 | 方法和说明 |
---|---|
Recorder |
AbstractRecorder.end()
结束一次记录,在这里进行一次记录的输出,同时将耗时的值保存到列表用于统计
进行状态判断,是否已经停止测试
|
Recorder |
Recorder.end()
结束一次记录,在这里进行一次记录的输出,同时将耗时的值保存到列表用于统计
|
Recorder |
AbstractRecorder.reset()
重置记速器,重置前执行一次统计
|
Recorder |
Recorder.reset()
重置计速器
|
Recorder |
AbstractRecorder.Collect.run() |
Recorder |
AbstractRecorder.setEveryPattern(AbstractRecorder.EveryPattern everyPattern)
设置记录器的记录接口
|
Recorder |
AbstractRecorder.setStatisticPattern(AbstractRecorder.StatisticPattern statisticPattern)
设置记录器的统计接口
|
Recorder |
AbstractRecorder.start()
开始一次记录,在这里应该创建一个SpeedEvent实体对象,传入开始时间;
进行状态判断,从而知道是否能够正常的开始测试;
start和end希望可以多线程进行操作,所以在这里不能实现状态控制,只能由子类来实现。
|
Recorder |
Recorder.start()
开始一次记录,在这里应该创建一个SpeedEvent实体对象,传入开始时间
|
Recorder |
AbstractRecorder.statistics()
执行统计,执行统计时将状态设置为统计中,此时不允许进行操作记速器的行为
|
Recorder |
Recorder.statistics()
执行统计
|
构造器和说明 |
---|
Collect(Recorder recorder,
AbstractRecorder.Collector collector) |
Copyright © 2020. All rights reserved.