code: def profile(*args, **kwargs):
      
      if _is_initialized():
          def wrapper(f):
              return wrapHttpEndpoint(f)
  
          return wrapper
      raise Exception(
          "before measuring anything, you need to call init_app()")
docs: http endpoint decorator