Skip to content
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

Name the rayon threads #3060

Merged
merged 1 commit into from
Aug 22, 2023
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion crates/re_types/source_hash.txt

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

5 changes: 5 additions & 0 deletions crates/re_types_builder/src/bin/build_re_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ const PYTHON_OUTPUT_DIR_PATH: &str = "rerun_py/rerun_sdk/rerun/_rerun2";
fn main() {
re_log::setup_native_logging();

rayon::ThreadPoolBuilder::new()
.thread_name(|i| format!("rayon-{i}"))
.build_global()
.unwrap();

let mut profiler = re_tracing::Profiler::default();

for arg in std::env::args().skip(1) {
Expand Down
1 change: 1 addition & 0 deletions crates/rerun-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ rerun = { workspace = true, features = [
anyhow.workspace = true
document-features = "0.2"
mimalloc.workspace = true
rayon.workspace = true
tokio = { workspace = true, features = ["macros", "rt-multi-thread"] }


Expand Down
6 changes: 6 additions & 0 deletions crates/rerun-cli/src/bin/rerun.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ static GLOBAL: AccountingAllocator<mimalloc::MiMalloc> =
#[tokio::main]
async fn main() -> anyhow::Result<std::process::ExitCode> {
re_log::setup_native_logging();

rayon::ThreadPoolBuilder::new()
.thread_name(|i| format!("rayon-{i}"))
.build_global()
.unwrap();

let build_info = re_build_info::build_info!();
rerun::run(build_info, rerun::CallSource::Cli, std::env::args())
.await
Expand Down