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

Side by Side Diff: content/public/browser/profiler_controller.h

Issue 985773002: Introducing phased profiling framework (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@write_to_file
Patch Set: 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 (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 23 matching lines...) Expand all
34 // Register the subscriber so that it will be called when for example 34 // Register the subscriber so that it will be called when for example
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.
Alexei Svitkine (slow) 2015/03/06 20:06:40 Update comment.
vadimt 2015/03/06 21:34:58 Done.
45 virtual void GetProfilerData(int sequence_number) = 0; 45 virtual void GetProfilerData(int sequence_number, int profiling_phase) = 0;
46
47 // Contact child processes and notify them of the profiling phase completion.
48 virtual void OnProfilingPhaseCompletion(int profiling_phase) = 0;
46 }; 49 };
47 50
48 } // namespace content 51 } // namespace content
49 52
50 #endif // CONTENT_PUBLIC_BROWSER_PROFILER_CONTROLLER_H_ 53 #endif // CONTENT_PUBLIC_BROWSER_PROFILER_CONTROLLER_H_
OLDNEW
« content/browser/profiler_controller_impl.cc ('K') | « content/common/child_process_messages.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698