@@ -169,46 +169,6 @@ impl DWalletMPCManager {
169169 } )
170170 }
171171
172- /// Log memory statistics for debugging memory issues.
173- /// Call this periodically to track memory usage patterns.
174- pub ( crate ) fn log_memory_stats ( & self ) {
175- let total_sessions = self . sessions . len ( ) ;
176- let active_sessions = self
177- . sessions
178- . values ( )
179- . filter ( |s| matches ! ( & s. status, SessionStatus :: Active { .. } ) )
180- . count ( ) ;
181- let completed_sessions = self
182- . sessions
183- . values ( )
184- . filter ( |s| matches ! ( & s. status, SessionStatus :: Completed ) )
185- . count ( ) ;
186- let computation_completed_sessions = self
187- . sessions
188- . values ( )
189- . filter ( |s| matches ! ( & s. status, SessionStatus :: ComputationCompleted ) )
190- . count ( ) ;
191-
192- let network_keys_count = self . network_keys . network_encryption_keys . len ( ) ;
193- let pending_for_network_key_count: usize = self
194- . requests_pending_for_network_key
195- . values ( )
196- . map ( |v| v. len ( ) )
197- . sum ( ) ;
198- let pending_for_committee_count = self . requests_pending_for_next_active_committee . len ( ) ;
199-
200- info ! (
201- total_sessions,
202- active_sessions,
203- completed_sessions,
204- computation_completed_sessions,
205- network_keys_count,
206- pending_for_network_key_count,
207- pending_for_committee_count,
208- "MPC Manager Memory Stats"
209- ) ;
210- }
211-
212172 pub ( crate ) fn sync_last_session_to_complete_in_current_epoch (
213173 & mut self ,
214174 previous_value_for_last_session_to_complete_in_current_epoch : u64 ,
0 commit comments