OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_PUBLIC_BROWSER_PROFILER_CONTROLLER_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_PROFILER_CONTROLLER_H_ |
6 #define CONTENT_PUBLIC_BROWSER_PROFILER_CONTROLLER_H_ | 6 #define CONTENT_PUBLIC_BROWSER_PROFILER_CONTROLLER_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 24 matching lines...) Expand all Loading... | |
35 // OnProfilerDataCollected is returning profiler data from a child process. | 35 // OnProfilerDataCollected is returning profiler data from a child process. |
36 // This is called on UI thread. | 36 // This is called on UI thread. |
37 virtual void Register(ProfilerSubscriber* subscriber) = 0; | 37 virtual void Register(ProfilerSubscriber* subscriber) = 0; |
38 | 38 |
39 // Unregister the subscriber so that it will not be called when for example | 39 // Unregister the subscriber so that it will not be called when for example |
40 // OnProfilerDataCollected is returning profiler data from a child process. | 40 // OnProfilerDataCollected is returning profiler data from a child process. |
41 // Safe to call even if caller is not the current subscriber. | 41 // Safe to call even if caller is not the current subscriber. |
42 virtual void Unregister(const ProfilerSubscriber* subscriber) = 0; | 42 virtual void Unregister(const ProfilerSubscriber* subscriber) = 0; |
43 | 43 |
44 // Contact all processes and get their profiler data. | 44 // Contact all processes and get their profiler data. |
45 virtual void GetProfilerData(int sequence_number) = 0; | 45 // |current_profiling_phase| is the number of the current profiling phase. |
Ilya Sherman
2015/04/07 01:15:31
nit: s/number/0-indexed identifier, or something l
vadimt
2015/04/07 21:44:15
Done.
| |
46 virtual void GetProfilerData(int sequence_number, | |
47 int current_profiling_phase) = 0; | |
48 | |
49 // Contact child processes and notify them of the profiling phase | |
50 // |profiling_phase| completion. | |
Ilya Sherman
2015/04/07 01:15:31
nit: "notify them of the profiling phase completio
vadimt
2015/04/07 21:44:15
Done.
| |
51 virtual void OnProfilingPhaseCompletion(int profiling_phase) = 0; | |
Ilya Sherman
2015/04/07 01:15:31
nit: "Completion" -> "Completed"
| |
46 }; | 52 }; |
47 | 53 |
48 } // namespace content | 54 } // namespace content |
49 | 55 |
50 #endif // CONTENT_PUBLIC_BROWSER_PROFILER_CONTROLLER_H_ | 56 #endif // CONTENT_PUBLIC_BROWSER_PROFILER_CONTROLLER_H_ |
OLD | NEW |