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

Side by Side Diff: chrome/browser/metrics/chrome_metrics_service_client.h

Issue 985773002: Introducing phased profiling framework (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@write_to_file
Patch Set: Fial isherman@ comments Created 5 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ 5 #ifndef CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_
6 #define CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ 6 #define CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 // Called after the Plugin init task has been completed that continues the 87 // Called after the Plugin init task has been completed that continues the
88 // init task by launching a task to gather Google Update statistics. 88 // init task by launching a task to gather Google Update statistics.
89 void OnInitTaskGotPluginInfo(); 89 void OnInitTaskGotPluginInfo();
90 90
91 // Called after GoogleUpdate init task has been completed that continues the 91 // Called after GoogleUpdate init task has been completed that continues the
92 // init task by loading profiler data. 92 // init task by loading profiler data.
93 void OnInitTaskGotGoogleUpdateData(); 93 void OnInitTaskGotGoogleUpdateData();
94 94
95 // TrackingSynchronizerObserver: 95 // TrackingSynchronizerObserver:
96 void ReceivedProfilerData( 96 void ReceivedProfilerData(
97 const tracked_objects::ProcessDataSnapshot& process_data, 97 const tracked_objects::ProcessDataPhaseSnapshot& process_data_phase,
98 int process_type) override; 98 base::ProcessId process_id,
99 content::ProcessType process_type,
100 int profiling_phase,
101 const base::TimeDelta& profiling_phase_start,
dcheng 2015/03/27 08:36:36 TimeDelta is typically passed by value: https://co
102 const base::TimeDelta& profiling_phase_finish,
103 const metrics::ProfilerEvents& past_profiler_events) override;
99 void FinishedReceivingProfilerData() override; 104 void FinishedReceivingProfilerData() override;
100 105
101 // Callbacks for various stages of final log info collection. Do not call 106 // Callbacks for various stages of final log info collection. Do not call
102 // these directly. 107 // these directly.
103 void OnMemoryDetailCollectionDone(); 108 void OnMemoryDetailCollectionDone();
104 void OnHistogramSynchronizationDone(); 109 void OnHistogramSynchronizationDone();
105 110
106 // Records metrics about the switches present on the command line. 111 // Records metrics about the switches present on the command line.
107 void RecordCommandLineMetrics(); 112 void RecordCommandLineMetrics();
108 113
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 // The MemoryGrowthTracker instance that tracks memory usage growth in 175 // The MemoryGrowthTracker instance that tracks memory usage growth in
171 // MemoryDetails. 176 // MemoryDetails.
172 MemoryGrowthTracker memory_growth_tracker_; 177 MemoryGrowthTracker memory_growth_tracker_;
173 178
174 base::WeakPtrFactory<ChromeMetricsServiceClient> weak_ptr_factory_; 179 base::WeakPtrFactory<ChromeMetricsServiceClient> weak_ptr_factory_;
175 180
176 DISALLOW_COPY_AND_ASSIGN(ChromeMetricsServiceClient); 181 DISALLOW_COPY_AND_ASSIGN(ChromeMetricsServiceClient);
177 }; 182 };
178 183
179 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ 184 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698