code: async def get(self):
          
  
          context_data = self.get_context_data()
          context_data.update(getattr(self.request.app, "stats", {}))
  
          response = self.json_response(context_data)
          return response
docs: Printing runtime statistics in JSON