| Index: chrome/browser/performance_monitor/database.h
|
| diff --git a/chrome/browser/performance_monitor/database.h b/chrome/browser/performance_monitor/database.h
|
| index ecd368958dc6ec3bc486db40f4dfd26af293703a..2c61e4641770769329d9f984e1842b7cfa32b34c 100644
|
| --- a/chrome/browser/performance_monitor/database.h
|
| +++ b/chrome/browser/performance_monitor/database.h
|
| @@ -158,6 +158,18 @@ class Database {
|
| std::vector<std::string> GetActiveActivities(MetricType metric_type,
|
| const base::Time& start);
|
|
|
| + // Populate info with the most recent activity. Return false if populate
|
| + // was unsuccessful.
|
| + bool GetRecentStatsForActivityAndMetric(const std::string& activity,
|
| + MetricType metric,
|
| + MetricInfo* info);
|
| +
|
| + bool GetRecentStatsForActivityAndMetric(MetricType metric, MetricInfo* info) {
|
| + return GetRecentStatsForActivityAndMetric(kProcessChromeAggregate,
|
| + metric,
|
| + info);
|
| + }
|
| +
|
| // Query given |metric_type| and |activity|.
|
| MetricInfoVector GetStatsForActivityAndMetric(const std::string& activity,
|
| MetricType metric_type,
|
|
|