cntk.debugging.profiler module

disable_profiler()[source]

Disable profiler from gathering data.

enable_profiler()[source]

Enable profiler to gather data. Note that in training_session, profiler would be enabled automatically after the first check point

start_profiler(dir='profiler', sync_gpu=True, reserve_mem=33554432)[source]

Start profiler to prepare performance statistics gathering. Note that the profiler is not enabled after start (example).

Parameters:
  • dir – directory for profiler output
  • sync_gpu – whether profiler syncs CPU with GPU when timing
  • reserve_mem – size in byte for profiler memory reserved
stop_profiler()[source]

Stop profiler from gathering performance statistics and flush them to file