Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
用于模拟运行缓慢的设备;每次下载、每个模拟客户端以及每次重复调用一次。
asa_uint32 _callback GetDownloadApplyTime( asa_uint32 repetitionNum, asa_uint32 numRepetitions, asa_uint32 simulatedClientNum, asa_uint32 numSimulatedClients, asa_uint32 recordedSyncNum, asa_uint32 numRecordedSyncs, asa_uint32 recordedDownloadApplyTime, const MLReplayNamesAndValues * namesAndValues )
repetitionNum 当前重复数。
numRepetitions 会话的重复次数。
simulatedClientNum 用于区别此模拟客户端与相同 mlreplay 实例中其它模拟客户端的模拟客户端号(顺序为 1)。
numSimulatedClients 此 mlreplay 实例中的模拟客户端总数。
recordedSyncNum 记录的协议内的同步号(顺序为 1)。
numRecordedSyncs 记录的协议中的同步总数。
recordedDownloadApplyTime 记录的下载应用时间(以毫秒为单位)。
namesAndValues 用于自定义重放行为的一组定义的名称和值。
应用下载所用的毫秒数。
Mlreplay 可以很好地用于估计非持久连接中所发生同步的下载应用时间。对于在持久连接中发生的同步,除非使用下载确认,否则 mlreplay 无法精确估计下载应用时间。