#NEWLINE# @ functools . wraps ( _original_methods [ 'remove' ] ) #NEWLINE# def _remove( collection_self , spec_or_id , safe = False , **kwargs ) : #NEWLINE# #INDENT# start_time = time . time ( ) #NEWLINE# result = _original_methods [ 'remove' ] ( collection_self , spec_or_id , safe = safe , ** kwargs ) #NEWLINE# total_time = ( ( time . time ( ) - start_time ) * 1000 ) #NEWLINE# __traceback_hide__ = True #NEWLINE# removes . append ( { #NEWLINE# #INDENT# 'spec_or_id' : spec_or_id , #NEWLINE# 'safe' : safe , #NEWLINE# 'time' : result , #NEWLINE# 'stack_trace' : _get_stacktrace ( ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# return result