Skip to content

Performance increase #119

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 25, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@

All notable changes to the `Serial Monitor` crate will be documented in this file.

# Unreleased 0.4.x
## Unreleased 0.4.x

* Switched to `crossbeam-channel` for more efficient channel routing
* removed many `.clone()` calls to reduce CPU load
* Fixed sample rate / disconnect issue
* Releases are now linked to libssl 3.4.1 on linux (built on Ubuntu 22.04)

# 0.3.4
## 0.3.4

* implement option to self-update the application

Expand Down
10 changes: 10 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ self_update = { git = "https://github.com/hacknus/self_update", features = ["arc
tempfile = { version = "3.15", optional = true }
reqwest = { version = "0.12", default-features = false, features = ["blocking", "json", "rustls-tls", "http2"], optional = true }
semver = { version = "1.0.24", optional = true }
crossbeam-channel = "0.5.14"

[features]
self_update = ["dep:self_update", "tempfile", "reqwest", "semver"]
Expand All @@ -51,4 +52,7 @@ dbg-build = false
dbg-name = false
name = "Serial Monitor"
no-build = false
output = "target/wix/SerialMonitorInstaller.msi"
output = "target/wix/SerialMonitorInstaller.msi"

[profile.release]
debug = true
7 changes: 7 additions & 0 deletions src/data.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use egui_plot::PlotPoint;
use std::fmt;
use std::time::{SystemTime, UNIX_EPOCH};

Expand Down Expand Up @@ -62,3 +63,9 @@ impl Default for DataContainer {
}
}
}

#[derive(Clone, Debug, Default)]
pub struct GuiOutputDataContainer {
pub prints: Vec<String>,
pub plots: Vec<(String, Vec<PlotPoint>)>,
}
Loading