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

Unified Diff: chrome/browser/task_profiler/task_profiler_data_serializer.cc

Issue 2386123003: Add heap allocator usage to task profiler. (Closed)
Patch Set: Address Eric's comment. Created 4 years 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
Index: chrome/browser/task_profiler/task_profiler_data_serializer.cc
diff --git a/chrome/browser/task_profiler/task_profiler_data_serializer.cc b/chrome/browser/task_profiler/task_profiler_data_serializer.cc
index 9a6b733980a10e94bfdb51e39adbca91347c5bd5..5d5e851428a788bf427c2fb13f0596bdb9bfa870 100644
--- a/chrome/browser/task_profiler/task_profiler_data_serializer.cc
+++ b/chrome/browser/task_profiler/task_profiler_data_serializer.cc
@@ -64,6 +64,14 @@ void DeathDataSnapshotToValue(const DeathDataSnapshot& death_data,
dictionary->SetInteger("queue_ms", death_data.queue_duration_sum);
dictionary->SetInteger("queue_ms_max", death_data.queue_duration_max);
dictionary->SetInteger("queue_ms_sample", death_data.queue_duration_sample);
+
+ dictionary->SetInteger("alloc_ops", death_data.alloc_ops);
+ dictionary->SetInteger("free_ops", death_data.free_ops);
+ dictionary->SetInteger("allocated_bytes", death_data.allocated_bytes);
+ dictionary->SetInteger("freed_bytes", death_data.freed_bytes);
+ dictionary->SetInteger("alloc_overhead_bytes",
+ death_data.alloc_overhead_bytes);
+ dictionary->SetInteger("max_allocated_bytes", death_data.max_allocated_bytes);
}
// Re-serializes the |snapshot| into |dictionary|.
« no previous file with comments | « chrome/browser/resources/profiler/profiler.js ('k') | chrome/browser/task_profiler/task_profiler_data_serializer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698