Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3513)

Unified Diff: chrome/browser/metrics/profiler_metrics_provider.cc

Issue 318993002: Merge MetricsLog and MetricsLogBase. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: address nits Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/metrics/omnibox_metrics_provider.cc ('k') | components/components_tests.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/metrics/profiler_metrics_provider.cc
===================================================================
--- chrome/browser/metrics/profiler_metrics_provider.cc (revision 275424)
+++ chrome/browser/metrics/profiler_metrics_provider.cc (working copy)
@@ -5,14 +5,14 @@
#include "chrome/browser/metrics/profiler_metrics_provider.h"
#include <ctype.h>
+#include <string>
#include <vector>
#include "base/tracked_objects.h"
-#include "components/metrics/metrics_log_base.h"
+#include "components/metrics/metrics_log.h"
#include "components/nacl/common/nacl_process_type.h"
#include "content/public/common/process_type.h"
-using metrics::MetricsLogBase;
using metrics::ProfilerEventProto;
using tracked_objects::ProcessDataSnapshot;
@@ -88,13 +88,13 @@
ProfilerEventProto::TrackedObject* tracked_object =
performance_profile->add_tracked_object();
tracked_object->set_birth_thread_name_hash(
- MetricsLogBase::Hash(MapThreadName(it->birth.thread_name)));
+ MetricsLog::Hash(MapThreadName(it->birth.thread_name)));
tracked_object->set_exec_thread_name_hash(
- MetricsLogBase::Hash(MapThreadName(it->death_thread_name)));
+ MetricsLog::Hash(MapThreadName(it->death_thread_name)));
tracked_object->set_source_file_name_hash(
- MetricsLogBase::Hash(NormalizeFileName(it->birth.location.file_name)));
+ MetricsLog::Hash(NormalizeFileName(it->birth.location.file_name)));
tracked_object->set_source_function_name_hash(
- MetricsLogBase::Hash(it->birth.location.function_name));
+ MetricsLog::Hash(it->birth.location.function_name));
tracked_object->set_source_line_number(it->birth.location.line_number);
tracked_object->set_exec_count(death_data.count);
tracked_object->set_exec_time_total(death_data.run_duration_sum);
« no previous file with comments | « chrome/browser/metrics/omnibox_metrics_provider.cc ('k') | components/components_tests.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698