Skip to content

Commit 7402bb5

Browse files
committed
refactor(walltime): move perf module under profiler/
1 parent 00acbdb commit 7402bb5

10 files changed

Lines changed: 7 additions & 6 deletions

File tree

src/executor/wall_time/executor.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use super::helpers::validate_walltime_results;
22
use super::isolation::wrap_with_isolation;
3-
use super::perf::PerfRunner;
3+
use super::profiler::perf::PerfRunner;
44
use crate::executor::Executor;
55
use crate::executor::ExecutorConfig;
66
use crate::executor::ToolStatus;
@@ -124,7 +124,7 @@ impl Executor for WallTimeExecutor {
124124
fn tool_status(&self) -> Option<ToolStatus> {
125125
self.perf
126126
.as_ref()
127-
.map(|_| super::perf::setup::get_perf_status())
127+
.map(|_| super::profiler::perf::setup::get_perf_status())
128128
}
129129

130130
fn support_level(&self, system_info: &SystemInfo) -> ExecutorSupport {

src/executor/wall_time/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
pub mod executor;
22
pub mod helpers;
33
pub mod isolation;
4-
pub mod perf;
54
pub mod profiler;
65
pub mod symbolication;

src/executor/wall_time/profiler/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
//! (perf, samply, instruments, ...) and produces a unified set of artifacts
55
//! in the profile folder.
66
7+
pub mod perf;
8+
79
use crate::executor::ExecutorConfig;
810
use crate::executor::ToolStatus;
911
use crate::executor::helpers::command::CommandBuilder;
File renamed without changes.

src/executor/wall_time/perf/mod.rs renamed to src/executor/wall_time/profiler/perf/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use crate::executor::helpers::run_with_sudo::run_with_sudo;
1212
use crate::executor::helpers::run_with_sudo::wrap_with_sudo;
1313
use crate::executor::shared::fifo::FifoBenchmarkData;
1414
use crate::executor::shared::fifo::RunnerFifo;
15-
use crate::executor::wall_time::perf::perf_executable::get_working_perf_executable;
15+
use crate::executor::wall_time::profiler::perf::perf_executable::get_working_perf_executable;
1616
use crate::prelude::*;
1717
use anyhow::Context;
1818
use fifo::PerfFifo;
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/executor/wall_time/perf/save_artifacts.rs renamed to src/executor/wall_time/profiler/perf/save_artifacts.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use crate::executor::valgrind::helpers::ignored_objects_path::get_objects_path_to_ignore;
2-
use crate::executor::wall_time::perf::naming;
2+
use crate::executor::wall_time::profiler::perf::naming;
33
use crate::executor::wall_time::symbolication::debug_info::debug_info_by_path;
44
use crate::executor::wall_time::symbolication::loaded_module::LoadedModule;
55
use crate::prelude::*;

src/executor/wall_time/perf/setup.rs renamed to src/executor/wall_time/profiler/perf/setup.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use crate::executor::helpers::apt;
2-
use crate::executor::wall_time::perf::perf_executable::get_working_perf_executable;
2+
use crate::executor::wall_time::profiler::perf::perf_executable::get_working_perf_executable;
33
use crate::executor::{ToolInstallStatus, ToolStatus};
44
use crate::prelude::*;
55
use crate::system::SystemInfo;

0 commit comments

Comments
 (0)