class_docstr: RedisGraph Commands
class_docstr_tok: ["RedisGraph","Commands"]
docstr: Execute a query and produce an execution plan augmented with metrics
  for each operation's execution. Return a string representation of a
  query execution plan, with details on results produced by and time
  spent in each operation.
  For more information see `GRAPH.PROFILE <https://redis.io/commands/graph.profile>`_. # noqa
docstr_tok: ["Execute","a","query","and","produce","an","execution","plan","augmented","with","metrics","for","each","operation","'s","execution",".","Return","a","string","representation","of","a","query","execution","plan",",","with","details","on","results","produced","by","and","time","spent","in","each","operation",".","For","more","information","see","`","GRAPH.PROFILE","<","https",":","\/\/redis.io\/commands\/graph.profile",">","`","_",".","#","noqa"]
code: def profile(self, query):
      """
      Execute a query and produce an execution plan augmented with metrics
      for each operation's execution. Return a string representation of a
      query execution plan, with details on results produced by and time
      spent in each operation.
      For more information see `GRAPH.PROFILE <https://redis.io/commands/graph.profile>`_. # noqa
      """
      return self.query(query, profile=True)
  
file_path: catboost/contrib/python/redis/py3/redis/commands/graph/commands.py
imports: from redis import DataError
  from redis.exceptions import ResponseError
  from .exceptions import VersionMismatchException
  from .execution_plan import ExecutionPlan
  from .query_result import AsyncQueryResult, QueryResult
label_desc: Use image node_id 7 for calling the GraphCommands obj's underlying member method code with example usage: obj.profile(query) and returns: self