Profile: removed opts::get()

This commit is contained in:
oneturkmen 2019-06-05 19:11:34 -06:00
parent 7a5ce048d2
commit f29ae9d88f
4 changed files with 37 additions and 20 deletions

View file

@ -12,7 +12,7 @@ use std::time::Duration;
#[test]
fn time_profiler_smoke_test() {
let chan = time::Profiler::create(&None, None);
let chan = time::Profiler::create(&None, None, false);
assert!(true, "Can create the profiler thread");
let (ipcchan, _ipcport) = ipc::channel().unwrap();
@ -45,7 +45,7 @@ fn time_profiler_stats_test() {
#[test]
fn channel_profiler_test() {
let chan = time::Profiler::create(&Some(OutputOptions::Stdout(5.0)), None);
let chan = time::Profiler::create(&Some(OutputOptions::Stdout(5.0)), None, false);
let (profiled_sender, profiled_receiver) = ProfiledIpc::channel(chan.clone()).unwrap();
thread::spawn(move || {
thread::sleep(Duration::from_secs(2));
@ -70,7 +70,7 @@ fn channel_profiler_test() {
#[test]
fn bytes_channel_profiler_test() {
let chan = time::Profiler::create(&Some(OutputOptions::Stdout(5.0)), None);
let chan = time::Profiler::create(&Some(OutputOptions::Stdout(5.0)), None, false);
let (profiled_sender, profiled_receiver) = ProfiledIpc::bytes_channel(chan.clone()).unwrap();
thread::spawn(move || {
thread::sleep(Duration::from_secs(2));