pub struct DebugSession { /* private fields */ }
Expand description
Tracks timing information for various operations
Implementations§
Source§impl DebugSession
impl DebugSession
pub fn new(args: &str) -> Self
pub fn record_timing(&mut self, operation: &str, duration: Duration)
pub fn set_multi_step_error(&mut self, error: String)
pub fn set_single_step_success(&mut self, success: bool)
pub fn set_commit_result(&mut self, message: String, reasoning: String)
pub fn set_files_analyzed(&mut self, args: CommitFunctionArgs)
pub fn set_total_files_parsed(&mut self, count: usize)
pub fn set_api_duration(&mut self, duration: Duration)
pub fn init_multi_step_debug(&mut self)
pub fn add_file_analysis_debug( &mut self, file_path: String, operation: String, analysis: FileAnalysisResult, duration: Duration, payload: String, )
pub fn set_score_debug( &mut self, result: Vec<FileWithScore>, duration: Duration, payload: String, )
pub fn set_generate_debug( &mut self, result: Value, duration: Duration, payload: String, )
pub fn set_final_message_debug(&mut self, duration: Duration)
pub fn set_final_commit_info( &mut self, branch: String, hash: String, files: usize, insertions: usize, deletions: usize, )
pub fn print_debug_output(&self)
Auto Trait Implementations§
impl Freeze for DebugSession
impl RefUnwindSafe for DebugSession
impl Send for DebugSession
impl Sync for DebugSession
impl Unpin for DebugSession
impl UnwindSafe for DebugSession
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more