class_docstr: The Profile Mixin for Client and Flow to expose `profile` API
class_docstr_tok: ["The","Profile","Mixin","for","Client","and","Flow","to","expose","`","profile","`","API"]
docstr: Profiling a single query's roundtrip including network and computation latency. Results is summarized in a Dict.
  
  :param show_table: whether to show the table or not.
  :return: the latency report in a dict.
docstr_tok: ["Profiling","a","single","query","'s","roundtrip","including","network","and","computation","latency",".","Results","is","summarized","in","a","Dict",".",":","param","show_table",":","whether","to","show","the","table","or","not",".",":","return",":","the","latency","report","in","a","dict","."]
code: def profiling(self, show_table: bool = True) -> Dict[str, float]:
      """Profiling a single query's roundtrip including network and computation latency. Results is summarized in a Dict.
  
      :param show_table: whether to show the table or not.
      :return: the latency report in a dict.
      """
      from docarray import Document
  
      st = time.perf_counter()
      r = self.client.post(
          on="/", inputs=Document(), return_responses=True
      )
      ed = time.perf_counter()
      return _render_response_table(r[0], st, ed, show_table=show_table)
  
imports: import time
  import warnings
  from functools import partialmethod
  from typing import TYPE_CHECKING, AsyncGenerator, Dict, List, Optional, Type, Union
  import grpc.aio
  from jina.clients.base.grpc import GRPCBaseClient
  from jina.clients.base.retry import wait_or_raise_err
  from jina.excepts import InternalNetworkError
  from jina.helper import deprecate_by, get_or_reuse_loop, run_async
  from jina.importer import ImportExtensions
  from jina._docarray import Document, DocumentArray, docarray_v2
label_desc: Use image node_id 1 for calling the ProfileMixin obj's underlying member method code with example usage: obj.profiling(show_table) and returns: _render_response_table