def profile_end(name=None):
 last_name = _profiles_stack.pop()
 name = (name or last_name)
 if (not (name in _profiles)):
  _profiles[name] = 0.0
 _profiles[name] += (time.time() - _profiles_running[name])

def profile_end ( name = None ) : last_name = _profiles_stack . pop ( ) name = ( name or last_name ) if ( not ( name in _profiles ) ) : _profiles [ name ] = 0.0 _profiles [ name ] += ( time . time ( ) - _profiles_running [ name ] )
ends a profiling interval with specific name .