1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
//! Configuration for Joule Profiler.
//!
//! This module defines the configuration structures used to run the profiler:
//! which command to execute, output options, and RAPL settings.
//!
//! # Example
//!
//! ```no_run
//! use joule_profiler_core::config::{Config, Command, ProfileConfig};
//!
//! let profile = ProfileConfig {
//! stdout_file: None,
//! cmd: vec!["sleep".into(), "1".into()],
//! token_pattern: "__[A-Z0-9_]+__".into(),
//! use_root: false,
//! init_timeout: std::time::Duration::from_secs(1),
//! };
//!
//! let config = Config {
//! command: Command::Profile(profile)
//! };
//! ```
use Duration;
use Builder;
/// Top-level configuration for Joule Profiler.
/// Command executed by the profiler.
/// Configuration for program profiling.