From 865065217f0e79ca2b359a5c60a2b49b97ff67f8 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 4 Jul 2026 21:17:48 +0900 Subject: fix(console-application): implement --profile via IOInterface::enable_debugging The --profile flag parsed the option but never actually enabled the timing/memory output, because ConsoleIO::enableDebugging existed only as an inherent method, unreachable through the `dyn IOInterface` handle held by Application. Promote enable_debugging to an IOInterface trait method (default panics, since only ConsoleIO/BufferIO ever legitimately receive this call) so do_run can invoke it directly without downcasting. --- crates/shirabe/src/io/console_io.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crates/shirabe/src/io/console_io.rs') diff --git a/crates/shirabe/src/io/console_io.rs b/crates/shirabe/src/io/console_io.rs index 210dbdc..eb7ab31 100644 --- a/crates/shirabe/src/io/console_io.rs +++ b/crates/shirabe/src/io/console_io.rs @@ -678,6 +678,10 @@ impl IOInterface for ConsoleIO { fn as_base_io_mut(&mut self) -> Option<&mut dyn BaseIO> { Some(self) } + + fn enable_debugging(&mut self, start_time: f64) { + self.enable_debugging(start_time) + } } impl BaseIO for ConsoleIO { -- cgit v1.3.1