nlcpy.prof.print_run_stats

nlcpy.prof.print_run_stats()[source]

Prints NLCPy run stats.

Note

Deprecated since version 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]
----------------------------------------