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 17:01:44 +0000
committertony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-07 17:01:44 +0000
commit84abba65c18ad3746066129990ad46421675d5a2 (patch)
treea3e6193d74f96ab728b3baeeb0a35fdd3dd47e47 /chrome/browser/metrics
parent0c882b2856e5851765ce89f63d337902a3e6b823 (diff)
downloadchromium_src-84abba65c18ad3746066129990ad46421675d5a2.zip
chromium_src-84abba65c18ad3746066129990ad46421675d5a2.tar.gz
chromium_src-84abba65c18ad3746066129990ad46421675d5a2.tar.bz2
Revert "Revert "Add startup tests that log start script, domcontentloaded, and onload.""
This reverts commit r28209 and relands r28199. The failure seems to have been flaky (it passed on the other bots and on the following run). I want to try to land again. If it fails again, I'll disable the test. TBR=mattm Review URL: http://codereview.chromium.org/268003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28268 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_