code: def wrapAppEndpoints(app):
      
      for endpoint, func in app.view_functions.items():
          app.view_functions[endpoint] = wrapHttpEndpoint(func)
docs: wraps all endpoints defined in the given flask app to measure how long time
      each endpoints takes while being executed. This wrapping process is
      supposed not to change endpoint behaviour.
      :param app: Flask application instance
      :return: