nlcpy.prof.get_run_stats

nlcpy.prof.get_run_stats()[source]

Gets dict of NLCPy run stats.

Returns
outdict

Note

Deprecated since version 2.0.0.

Examples

Sample Program:

# sample.py
import nlcpy as vp
from pprint import pprint
vp.prof.start_profiling()
for i in range(10):
    vp.random.rand(10000)
vp.prof.stop_profiling()
stats = vp.prof.get_run_stats()
pprint(stats)

Execution:

$ python sample.py
{'total_runtime': {'elapsed_time': 0.004348278045654297},
'veo_alloc_mem': {'elapsed_time': 2.574920654296875e-05, 'number_of_call': 10},
'veo_free_mem': {'elapsed_time': 4.100799560546875e-05, 'number_of_call': 10},
'veo_read_mem': {'elapsed_time': 0, 'number_of_call': 0},
'veo_wait_result': {'elapsed_time': 0.0034487247467041016,
                    'number_of_call': 10},
'veo_write_mem': {'elapsed_time': 0, 'number_of_call': 0},
'vh_runtime': {'elapsed_time': 0.0008327960968017578}}