Update profile()
for CUDA Memory allocation
#4239
Merged
profile()
for CUDA Memory allocation
#4239