clock:internal internal_ref_hz:2000000 start:di_syn2_rise stop:di_syn2_fall sample_clock_hz:max range:0.2 di1:trace di1_group_avg full_res_live live_history_packets:8 duration_ms:100 packet_limit:0 csv:capture.csv svg:capture.svgC
This commit is contained in:
@ -2,6 +2,7 @@
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include <deque>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
@ -19,7 +20,10 @@ public:
|
||||
CaptureFileWriter(std::string csv_path,
|
||||
std::string svg_path,
|
||||
std::string live_html_path,
|
||||
std::string live_json_path);
|
||||
std::string live_json_path,
|
||||
bool full_res_live,
|
||||
std::size_t live_history_packets,
|
||||
bool di1_group_average);
|
||||
|
||||
void write(const std::vector<CapturePacket>& packets,
|
||||
double frame_freq_hz,
|
||||
@ -31,7 +35,7 @@ public:
|
||||
double frame_freq_hz,
|
||||
std::size_t& global_frame_index) const;
|
||||
|
||||
void update_live_plot(const CapturePacket& packet,
|
||||
void update_live_plot(const std::deque<CapturePacket>& packets,
|
||||
std::size_t packets_seen,
|
||||
double packets_per_second,
|
||||
double frame_freq_hz,
|
||||
@ -52,4 +56,7 @@ private:
|
||||
std::string svg_path_;
|
||||
std::string live_html_path_;
|
||||
std::string live_json_path_;
|
||||
bool full_res_live_ = false;
|
||||
std::size_t live_history_packets_ = 8;
|
||||
bool di1_group_average_ = false;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user