summaryrefslogtreecommitdiffstats
path: root/chrome/browser/metrics
diff options
context:
space:
mode:
authortony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-07 00:16:15 +0000
committertony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-07 00:16:15 +0000
commit1cc48f14278f4bb882d633ab4776b09478e7f668 (patch)
tree94ddd4801b3a78bbdc2b12069a19ab7936583e99 /chrome/browser/metrics
parent551d976c7518976334d2bb2dfe978c7b28678172 (diff)
downloadchromium_src-1cc48f14278f4bb882d633ab4776b09478e7f668.zip
chromium_src-1cc48f14278f4bb882d633ab4776b09478e7f668.tar.gz
chromium_src-1cc48f14278f4bb882d633ab4776b09478e7f668.tar.bz2
Add startup tests that log start script, domcontentloaded, and onload.
TabContents sends a notification which is picked up by the browser automation controller which keeps a map of events and times. Add an automation IPC so that tests can get these values from the browser automation controller. Finally, add a feature startup test to collect these values. This is just to get some consistent timings from the buildbot. BUG=23120 Review URL: http://codereview.chromium.org/246105 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28199 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/metrics')
-rw-r--r--chrome/browser/metrics/metric_event_duration_details.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/chrome/browser/metrics/metric_event_duration_details.h b/chrome/browser/metrics/metric_event_duration_details.h
new file mode 100644
index 0000000..3e2feec
--- /dev/null
+++ b/chrome/browser/metrics/metric_event_duration_details.h
@@ -0,0 +1,20 @@
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_METRICS_METRIC_EVENT_DURATION_DETAILS_H_
+#define CHROME_BROWSER_METRICS_METRIC_EVENT_DURATION_DETAILS_H_
+
+#include <string>
+
+// Used when sending a notification about an event that occurred that we want
+// to time.
+struct MetricEventDurationDetails {
+ MetricEventDurationDetails(const std::string& e, int d)
+ : event_name(e), duration_ms(d) {}
+
+ std::string event_name;
+ int duration_ms;
+};
+
+#endif // CHROME_BROWSER_METRICS_METRIC_EVENT_DURATION_DETAILS_H_