mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-01 10:15:31 +00:00
load testers: name worker threads "load-test"
This commit is contained in:
parent
5fb91ccc73
commit
0a63ee3ce7
3 changed files with 5 additions and 3 deletions
|
|
@ -1,7 +1,7 @@
|
|||
use std::net::{Ipv4Addr, Ipv6Addr, SocketAddr};
|
||||
use std::sync::atomic::AtomicUsize;
|
||||
use std::sync::{atomic::Ordering, Arc};
|
||||
use std::thread;
|
||||
use std::thread::{self, Builder};
|
||||
use std::time::{Duration, Instant};
|
||||
|
||||
#[cfg(feature = "cpu-pinning")]
|
||||
|
|
@ -79,7 +79,7 @@ fn run(config: Config) -> ::anyhow::Result<()> {
|
|||
let config = config.clone();
|
||||
let state = state.clone();
|
||||
|
||||
thread::spawn(move || {
|
||||
Builder::new().name("load-test".into()).spawn(move || {
|
||||
#[cfg(feature = "cpu-pinning")]
|
||||
pin_current_if_configured_to(
|
||||
&config.cpu_pinning,
|
||||
|
|
@ -89,7 +89,7 @@ fn run(config: Config) -> ::anyhow::Result<()> {
|
|||
);
|
||||
|
||||
run_worker_thread(state, pareto, &config, addr)
|
||||
});
|
||||
})?;
|
||||
}
|
||||
|
||||
#[cfg(feature = "cpu-pinning")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue