[autotest] Time crashcollection.

Add stats for crashcollect and crashinfo.

TEST=pylint
BUG=chromium:322110

Change-Id: Ie8ed83e91a3360296c3a67e2ce0e8ff2bc94c658
Reviewed-on: https://chromium-review.googlesource.com/178135
Tested-by: Prashanth B <beeps@chromium.org>
Reviewed-by: Dan Shi <dshi@chromium.org>
Commit-Queue: Prashanth B <beeps@chromium.org>
diff --git a/server/crashcollect.py b/server/crashcollect.py
index a8ac8a5..d6dba91 100644
--- a/server/crashcollect.py
+++ b/server/crashcollect.py
@@ -15,10 +15,14 @@
     lambda host, test_start_time: None)
 
 
+_timer = stats.Timer('crash_collection')
+
+@_timer.decorate
 def get_crashdumps(host, test_start_time):
     get_site_crashdumps(host, test_start_time)
 
 
+@_timer.decorate
 def get_crashinfo(host, test_start_time):
     logging.info("Collecting crash information...")