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

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

Issue 2488073002: Reuse ThreadData instances associated with terminated named threads. (Closed)
Patch Set: rebase 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 5d5e851428a788bf427c2fb13f0596bdb9bfa870..6f4b52ee948b7368ac23902116ec48cea5d14bb9 100644
--- a/chrome/browser/task_profiler/task_profiler_data_serializer.cc
+++ b/chrome/browser/task_profiler/task_profiler_data_serializer.cc
@@ -51,7 +51,8 @@ void BirthOnThreadSnapshotToValue(const BirthOnThreadSnapshot& birth,
LocationSnapshotToValue(birth.location, location_value.get());
dictionary->Set(prefix + "_location", location_value.release());
- dictionary->Set(prefix + "_thread", new base::StringValue(birth.thread_name));
+ dictionary->Set(prefix + "_thread",
+ new base::StringValue(birth.sanitized_thread_name));
}
// Re-serializes the |death_data| into |dictionary|.
@@ -83,7 +84,7 @@ void TaskSnapshotToValue(const TaskSnapshot& snapshot,
DeathDataSnapshotToValue(snapshot.death_data, death_data.get());
dictionary->Set("death_data", death_data.release());
- dictionary->SetString("death_thread", snapshot.death_thread_name);
+ dictionary->SetString("death_thread", snapshot.death_sanitized_thread_name);
}
int AsChromeProcessType(
« no previous file with comments | « base/tracked_objects_unittest.cc ('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