From 19d9003cd79b1272392f0cec23fca824b7926701 Mon Sep 17 00:00:00 2001 From: pedrocarlo Date: Tue, 26 Aug 2025 14:05:36 -0300 Subject: [PATCH] create profiles folder --- simulator/main.rs | 1 + simulator/profiles/io.rs | 9 +++++++++ simulator/profiles/mod.rs | 5 +++++ simulator/profiles/query.rs | 29 +++++++++++++++++++++++++++++ 4 files changed, 44 insertions(+) create mode 100644 simulator/profiles/io.rs create mode 100644 simulator/profiles/mod.rs create mode 100644 simulator/profiles/query.rs diff --git a/simulator/main.rs b/simulator/main.rs index ccf8977ae..7db63dbb4 100644 --- a/simulator/main.rs +++ b/simulator/main.rs @@ -27,6 +27,7 @@ use crate::runner::env::{Paths, SimulationPhase, SimulationType}; mod generation; mod model; +mod profiles; mod runner; mod shrink; diff --git a/simulator/profiles/io.rs b/simulator/profiles/io.rs new file mode 100644 index 000000000..fd91d7033 --- /dev/null +++ b/simulator/profiles/io.rs @@ -0,0 +1,9 @@ +#[derive(Debug, Default, Clone)] +pub struct IOProfile { + enable: bool, +} + +#[derive(Debug, Default, Clone)] +pub struct LatencyProfile { + enable: bool, +} diff --git a/simulator/profiles/mod.rs b/simulator/profiles/mod.rs new file mode 100644 index 000000000..a4192602d --- /dev/null +++ b/simulator/profiles/mod.rs @@ -0,0 +1,5 @@ +mod io; +mod query; + +#[derive(Debug, Default, Clone)] +pub struct Profile {} diff --git a/simulator/profiles/query.rs b/simulator/profiles/query.rs new file mode 100644 index 000000000..725513709 --- /dev/null +++ b/simulator/profiles/query.rs @@ -0,0 +1,29 @@ +#[derive(Debug, Default, Clone)] +pub struct CreateTableProfile { + enable: bool, +} + +#[derive(Debug, Default, Clone)] +pub struct CreateIndexProfile { + enable: bool, +} + +#[derive(Debug, Default, Clone)] +pub struct InsertProfile { + enable: bool, +} + +#[derive(Debug, Default, Clone)] +pub struct UpdateProfile { + enable: bool, +} + +#[derive(Debug, Default, Clone)] +pub struct DeleteProfile { + enable: bool, +} + +#[derive(Debug, Default, Clone)] +pub struct DropTableProfile { + enable: bool, +}