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

Unified Diff: webkit/child/webkitplatformsupport_impl.cc

Issue 66193005: Independently enable recording and event callback (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 | « webkit/child/webkitplatformsupport_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/child/webkitplatformsupport_impl.cc
diff --git a/webkit/child/webkitplatformsupport_impl.cc b/webkit/child/webkitplatformsupport_impl.cc
index 398b45c1c5c05d976be73cad1386f3ee9a0d98ff..92d7ad60ba278e2bb7a976043b25a0292b49c13c 100644
--- a/webkit/child/webkitplatformsupport_impl.cc
+++ b/webkit/child/webkitplatformsupport_impl.cc
@@ -490,11 +490,20 @@ blink::Platform::TraceEventHandle WebKitPlatformSupportImpl::addTraceEvent(
return result;
}
+// TODO(wangxianzhu): Remove this.
void WebKitPlatformSupportImpl::updateTraceEventDuration(
TraceEventHandle handle) {
+ updateTraceEventDuration(NULL, NULL, handle);
+}
+
+void WebKitPlatformSupportImpl::updateTraceEventDuration(
+ const unsigned char* category_group_enabled,
+ const char* name,
+ TraceEventHandle handle) {
base::debug::TraceEventHandle traceEventHandle;
memcpy(&traceEventHandle, &handle, sizeof(handle));
- TRACE_EVENT_API_UPDATE_TRACE_EVENT_DURATION(traceEventHandle);
+ TRACE_EVENT_API_UPDATE_TRACE_EVENT_DURATION(
+ category_group_enabled, name, traceEventHandle);
}
namespace {
« no previous file with comments | « webkit/child/webkitplatformsupport_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698