feat: upgrade to React 19, Tailwind 4, sysinfo 0.38 and implement manual chunk splitting

This commit is contained in:
2026-02-22 18:29:48 +01:00
parent ec142b09bd
commit a3dbd754be
8 changed files with 116 additions and 103 deletions

View File

@@ -6,14 +6,14 @@ authors = ["narl"]
edition = "2021"
[build-dependencies]
tauri-build = { version = "2", features = [] }
tauri-build = { version = "2.5.5" }
[dependencies]
tauri = { version = "2", features = [] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
sysinfo = "0.30"
chrono = "0.4"
tokio = { version = "1.0", features = ["full"] }
log = "0.4"
env_logger = "0.10"
tauri = { version = "2.10.2", features = [] }
serde = { version = "1.0.228", features = ["derive"] }
serde_json = "1.0.149"
sysinfo = "0.38.2"
chrono = "0.4.43"
tokio = { version = "1.49.0", features = ["full"] }
log = "0.4.29"
env_logger = "0.11.9"

View File

@@ -101,7 +101,7 @@ fn get_system_stats(
let mut profiling = state.profiling.lock().unwrap();
if minimal {
sys.refresh_cpu();
sys.refresh_cpu_all();
sys.refresh_memory();
} else {
sys.refresh_all();
@@ -120,7 +120,7 @@ fn get_system_stats(
.map(|(pid, process)| {
ProcessStats {
pid: pid.as_u32(),
name: process.name().to_string(),
name: process.name().to_string_lossy().to_string(),
cpu_usage: process.cpu_usage(),
memory: process.memory(),
status: format!("{:?}", process.status()),
@@ -132,13 +132,13 @@ fn get_system_stats(
if profiling.is_active {
// Even in minimal mode, if recording we need the processes for the report
if minimal {
sys.refresh_processes();
sys.refresh_processes(sysinfo::ProcessesToUpdate::All, true);
processes = sys.processes().iter()
.filter(|(pid, _)| !exclude_self || pid.as_u32() != self_pid)
.map(|(pid, process)| {
ProcessStats {
pid: pid.as_u32(),
name: process.name().to_string(),
name: process.name().to_string_lossy().to_string(),
cpu_usage: process.cpu_usage(),
memory: process.memory(),
status: format!("{:?}", process.status()),