nlcpy.prof.print_run_stats

nlcpy.prof.print_run_stats()[ソース]

Prints NLCPy run stats.

注釈

バージョン 2.0.0 で非推奨.

Examples

Sample Program:

# sample.py
import nlcpy as vp
vp.prof.start_profiling()
for i in range(10):
    vp.random.rand(10000)
vp.prof.stop_profiling()
vp.prof.print_run_stats()

Execution:

$ python sample.py

----------- NLCPy Run Stats ------------
alloc memory on VE:
  total: 1.097e-05 [sec]
  veo_alloc_mem was called 10 times
free memory on VE:
  total: 9.298e-06 [sec]
  veo_free_mem was called 10 times
write memory on VE:
  total: 0.000e+00 [sec]
  veo_write_mem was called 0 times
read memory from VE:
  total: 0.000e+00 [sec]
  veo_read_mem was called 0 times
VE runtime(include offload overhead):
  total: 3.016e-04 [sec]
  veo_wait_result was called 10 times
other VH runtime:
  total: 2.632e-04 [sec]
total runtime:
  total: 5.851e-04 [sec]
----------------------------------------