Commit 96ca1c45 authored by Viktor Reshniak's avatar Viktor Reshniak
Browse files

add profiling

parent 3360c252
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -2977,6 +2977,13 @@ class PeakHistogram(object):
		return intensity, sigma, peak_chi2, total_bkgr_intensity


	def print_stat(self):
		tot_time = sum(self._profile.values())

		print('Profiling')
		print('=========')
		for key,val in self._profile.items():
			print(f'{key:>25s}:  {val:.2e} s,  {val/tot_time*100:5.2f} %')