Add timer around normalized_hot.

This commit is contained in:
Brian Simpson
2013-11-13 21:39:16 -05:00
parent bdfecf27c5
commit c827dea143

View File

@@ -38,5 +38,9 @@ def l(li):
return list(li)
def normalized_hot(sr_ids, obey_age_limit=True):
timer = g.stats.get_timer("normalized_hot")
timer.start()
sr_ids = l(sorted(sr_ids))
return normalized_hot_cached(sr_ids, obey_age_limit) if sr_ids else ()
ret = normalized_hot_cached(sr_ids, obey_age_limit) if sr_ids else ()
timer.stop()
return ret