Skip to content

Commit

Permalink
document the new logging infrastructure more accurately
Browse files Browse the repository at this point in the history
  • Loading branch information
nikomatsakis committed Apr 7, 2020
1 parent dc1f826 commit 44850fa
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions rayon-core/src/log.rs
@@ -1,11 +1,22 @@
//! Debug Logging
//!
//! To use in a debug build, set the env var `RAYON_RS_LOG=1`. In a
//! release build, logs are compiled out by default unless Rayon is built
//! with `--cfg rayon_rs_log` (try `RUSTFLAGS="--cfg rayon_rs_log"`).
//! To use in a debug build, set the env var `RAYON_RS_LOG` as
//! described below. In a release build, logs are compiled out by
//! default unless Rayon is built with `--cfg rayon_rs_log` (try
//! `RUSTFLAGS="--cfg rayon_rs_log"`).
//!
//! Note that logs are an internally debugging tool and their format
//! is considered unstable, as are the details of how to enable them.
//!
//! # Valid values for RAYON_RS_LOG
//!
//! The `RAYON_RS_LOG` variable can take on the following values:
//!
//! * `tail:<file>` -- dumps the last 10,000 events into the given file;
//! useful for tracking down deadlocks
//! * `profile:<file>` -- dumps only those events needed to reconstruct how
//! many workers are active at a given time
//! * `all:<file>` -- dumps every event to the file; useful for debugging

use crossbeam_channel::{self, Receiver, Sender};
use std::collections::VecDeque;
Expand Down

0 comments on commit 44850fa

Please sign in to comment.