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

Unified Diff: chrome/browser/ui/webui/profiler_ui.cc

Issue 985773002: Introducing phased profiling framework (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@write_to_file
Patch Set: Fixing Android compile errors. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/webui/profiler_ui.h ('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/ui/webui/profiler_ui.cc
diff --git a/chrome/browser/ui/webui/profiler_ui.cc b/chrome/browser/ui/webui/profiler_ui.cc
index a8067f96cff5cafacb1d61966e6bc757a308220f..a16c05f1e08aa201d5978c023dc86a058a555592 100644
--- a/chrome/browser/ui/webui/profiler_ui.cc
+++ b/chrome/browser/ui/webui/profiler_ui.cc
@@ -163,13 +163,17 @@ void ProfilerUI::GetData() {
}
void ProfilerUI::ReceivedProfilerData(
- const tracked_objects::ProcessDataSnapshot& profiler_data,
- int process_type) {
+ const tracked_objects::ProcessDataPhaseSnapshot& process_data_phase,
+ base::ProcessId process_id,
+ content::ProcessType process_type,
+ int profiling_phase,
+ base::TimeDelta phase_start,
+ base::TimeDelta phase_finish,
+ const metrics::ProfilerEvents& past_events) {
// Serialize the data to JSON.
base::DictionaryValue json_data;
- task_profiler::TaskProfilerDataSerializer::ToValue(profiler_data,
- process_type,
- &json_data);
+ task_profiler::TaskProfilerDataSerializer::ToValue(
+ process_data_phase, process_id, process_type, &json_data);
// Send the data to the renderer.
web_ui()->CallJavascriptFunction("g_browserBridge.receivedData", json_data);
« no previous file with comments | « chrome/browser/ui/webui/profiler_ui.h ('k') | components/components_tests.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698