Skip to content

Commit

Permalink
Move traces into their own submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
OMGtechy committed Jul 27, 2022
1 parent ae90f64 commit 508a8bc
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
pub mod args;
pub mod child;
pub mod optimised_trace;
pub mod parent;
pub mod raw_trace;
pub mod tui;
pub mod trace;

use args::Args;
use child::child;
Expand Down
2 changes: 2 additions & 0 deletions src/trace/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pub mod optimised_trace;
pub mod raw_trace;
2 changes: 1 addition & 1 deletion src/optimised_trace.rs → src/trace/optimised_trace.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::{collections::HashSet, hash::Hash};

use crate::raw_trace::{RawTrace, InstructionPointer, Timestamp};
use crate::trace::raw_trace::{RawTrace, InstructionPointer, Timestamp};

#[derive(Debug)]
pub struct StackFrameID(u64);
Expand Down
File renamed without changes.
3 changes: 1 addition & 2 deletions src/tui.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use crate::{args::Args, optimised_trace::OptimisedTrace};
use crate::raw_trace::RawTrace;
use crate::{args::Args, trace::{raw_trace::RawTrace, optimised_trace::OptimisedTrace}};

use crossterm::{terminal::{enable_raw_mode, EnterAlternateScreen, disable_raw_mode, LeaveAlternateScreen}, execute, event::{self, Event::Key, KeyCode, KeyModifiers}};
use std::time::Duration;
Expand Down

0 comments on commit 508a8bc

Please sign in to comment.