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

Unified Diff: cc/debug/traced_value.cc

Issue 20667002: cc: Add frame data to LTHI tracing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add category thing Created 7 years, 4 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
Index: cc/debug/traced_value.cc
diff --git a/cc/debug/traced_value.cc b/cc/debug/traced_value.cc
index 637c700552571c2ffe0e63dfe630e0d77cd84283..a2633cbcfbe23b776e4c9e5d0ce98cbb5ceb8d6d 100644
--- a/cc/debug/traced_value.cc
+++ b/cc/debug/traced_value.cc
@@ -16,9 +16,12 @@ scoped_ptr<base::Value> TracedValue::CreateIDRef(const void* id) {
return res.PassAs<base::Value>();
}
-void TracedValue::MakeDictIntoImplicitSnapshot(
- base::DictionaryValue* dict, const char* object_name, const void* id) {
+void TracedValue::MakeDictIntoImplicitSnapshot(const char* category,
+ base::DictionaryValue* dict,
+ const char* object_name,
+ const void* id) {
dict->SetString("id", base::StringPrintf("%s/%p", object_name, id));
+ dict->SetString("cat", category);
}
scoped_ptr<base::debug::ConvertableToTraceFormat> TracedValue::FromValue(

Powered by Google App Engine
This is Rietveld 408576698