o
    ®Ÿ?e(  ã                   @   sR   d Z ddlmZ ddlmZ eddƒ			dd	d
„ƒZeddƒ		ddd„ƒZdS )zProfiler client APIs.é    )Ú_pywrap_profiler)Ú
deprecatedz
2020-07-01z,use `tf.profiler.experimental.client.trace`.Ú Té   c              	   C   s   t  | |||||i ¡ dS )a¤  Sends grpc requests to profiler server to perform on-demand profiling.

  This method will block caller thread until receives tracing result.

  Args:
    service_addr: Address of profiler service e.g. localhost:6009.
    logdir: Path of TensorBoard log directory e.g. /tmp/tb_log.
    duration_ms: Duration of tracing or monitoring in ms.
    worker_list: The list of worker TPUs that we are about to profile in the
      current session. (TPU only)
    include_dataset_ops: Set to false to profile longer traces.
    num_tracing_attempts: Automatically retry N times when no trace event is
      collected.

  Raises:
    UnavailableError: If no trace event is collected.
  N)r   Útrace)Úservice_addrZlogdirÚduration_msZworker_listZinclude_dataset_opsZnum_tracing_attempts© r	   úh/home/www/facesmatcher.com/pyenv/lib/python3.10/site-packages/tensorflow/python/eager/profiler_client.pyÚstart_tracing   s   ÿr   z.use `tf.profiler.experimental.client.monitor`.é   Fc                 C   s   t  | |||¡S )a/  Sends grpc requests to profiler server to perform on-demand monitoring.

  This method will block caller thread until receives monitoring result.

  Args:
    service_addr: Address of profiler service e.g. localhost:6009.
    duration_ms: Duration of tracing or monitoring in ms.
    monitoring_level: Choose a monitoring level between 1 and 2 to monitor your
      job. Level 2 is more verbose than level 1 and shows more metrics.
    display_timestamp: Set to true to display timestamp in monitoring result.

  Returns:
    A string of monitoring output.
  )r   Úmonitor)r   r   Zmonitoring_levelZdisplay_timestampr	   r	   r
   r   1   s   
ÿr   N)r   Tr   )r   F)Ú__doc__Z#tensorflow.python.profiler.internalr   Z"tensorflow.python.util.deprecationr   r   r   r	   r	   r	   r
   Ú<module>   s   ûý