end of NetTestTimestampDFS group
- See also
- Motr Network Benchmark
◆ m0_net_test_mps_add()
Add sample to the MPS statistics if time interval [mps->ntmps_last_time, timestamp] is greater than mps->ntmps_interval. This function will use previous call (or initializer) parameters to calculate MPS: number of messages [mps->ntmps_last_nr, messages] in the time range [mps->ntmps_last_time, timestamp].
- Parameters
-
mps | MPS statistics structure. |
messages | Total number of messages transferred. |
timestamp | Timestamp of messages value. |
- Returns
- Value will not be added to the sample before this time.
- Todo:
- problem with small mps->ntmps_time_interval can be here
Definition at line 241 of file stats.c.
◆ m0_net_test_mps_init()
Initialize MPS statistics.
- Parameters
-
mps | MPS statistics structure. |
messages | Next call to m0_net_test_mps_add() will use this value as previous value to measure number of messages transferred in time interval. |
timestamp | The same as messages, but for time difference. |
interval | MPS measure interval. m0_net_test_mps_add() will not add sample to stats if time from last addition to statistics is less than interval. |
Definition at line 227 of file stats.c.