4#include <nlohmann/json_fwd.hpp>
void to_json(nlohmann::json &j, const Summary &s)
Serialises a summary, camelCase keys, times in microseconds.
Definition summary.cc:88
Summary summarise(std::span< const Record > records)
Summarises records, which must be in time order.
Definition summary.cc:46
The pcap file format, as much of it as a capture of Ethernet frames needs.
The counts for one kind of frame.
Definition summary.h:16
uint32_t returned
Sent frames that came back.
Definition summary.h:21
uint32_t lost
Sent frames with no return before the capture ended.
Definition summary.h:22
uint32_t over2Ms
Returns later than 2 ms after the first send.
Definition summary.h:23
int64_t latestUs
The latest return, in microseconds after its first send.
Definition summary.h:26
uint32_t resent
Definition summary.h:18
uint32_t over100Ms
Returns later than 100 ms. Counted in the two above as well.
Definition summary.h:25
uint32_t sent
Frames the master sent. A frame sent again counts once.
Definition summary.h:17
uint32_t over20Ms
Returns later than 20 ms. Counted in over2Ms as well.
Definition summary.h:24
The summary of one capture.
Definition summary.h:37
uint64_t notEtherCat
Records that are not an EtherCAT command frame.
Definition summary.h:39
uint64_t unmatchedReturns
Definition summary.h:40
int64_t firstNs
Timestamp of the first record.
Definition summary.h:42
int64_t lastNs
Timestamp of the last record.
Definition summary.h:43
uint64_t frames
Every record in the capture.
Definition summary.h:38
KindSummary cyclic
The process-data frame.
Definition summary.h:45
KindSummary control
Mailbox and register datagrams.
Definition summary.h:44