# Statistics on wall clock execution time of a category of events by `name`
class PerfEntry
	# Name of the category
	var name: String
	# Shortest execution time of registered events
	var min = 0.0
	# Longest execution time of registered events
	var max = 0.0
	# Average execution time of registered events
	var avg = 0.0
	# Number of registered events
	var count = 0
	# Total execution time of this event
	var sum = 0.0
	# Register a new event execution time in seconds
	fun add(time: Float)
	do
		if time.to_f < min.to_f or count == 0 then min = time
		if time.to_f > max.to_f then max = time
		sum += time
		count += 1
		avg = sum / count.to_f
	end
	redef fun to_s do return "min {min}, max {max}, avg {avg}, sum {sum}, count {count}"
end
					lib/performance_analysis/performance_analysis.nit:109,1--142,3