diff options
author | xhwang <xhwang@chromium.org> | 2015-07-15 15:18:42 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-07-15 22:19:37 +0000 |
commit | 7a3607a7b77bb841b9013f2a553770e2e2d00f66 (patch) | |
tree | c58367dfc00638c7e4a1569caf49c0671533c790 /content/ppapi_plugin | |
parent | 75540a59248efeb382e515971b762c17592a6ada (diff) | |
download | chromium_src-7a3607a7b77bb841b9013f2a553770e2e2d00f66.zip chromium_src-7a3607a7b77bb841b9013f2a553770e2e2d00f66.tar.gz chromium_src-7a3607a7b77bb841b9013f2a553770e2e2d00f66.tar.bz2 |
media: Add trace event for pepper plugin (CDM) loading time.
BUG=510234
TEST=Maually tested.
R=ddorwin@chromium.org
Review URL: https://codereview.chromium.org/1228733003
Cr-Commit-Position: refs/heads/master@{#338924}
Diffstat (limited to 'content/ppapi_plugin')
-rw-r--r-- | content/ppapi_plugin/ppapi_thread.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/content/ppapi_plugin/ppapi_thread.cc b/content/ppapi_plugin/ppapi_thread.cc index c5b2338..3b88a8e 100644 --- a/content/ppapi_plugin/ppapi_thread.cc +++ b/content/ppapi_plugin/ppapi_thread.cc @@ -19,6 +19,7 @@ #include "base/strings/utf_string_conversions.h" #include "base/threading/platform_thread.h" #include "base/time/time.h" +#include "base/trace_event/trace_event.h" #include "content/child/browser_font_resource_trusted.h" #include "content/child/child_discardable_shared_memory_manager.h" #include "content/child/child_process.h" @@ -307,7 +308,11 @@ void PpapiThread::OnLoadPlugin(const base::FilePath& path, if (plugin_entry_points_.initialize_module == NULL) { // Load the plugin from the specified library. base::NativeLibraryLoadError error; - library.Reset(base::LoadNativeLibrary(path, &error)); + { + TRACE_EVENT1("ppapi", "PpapiThread::LoadPlugin", "path", + path.MaybeAsASCII()); + library.Reset(base::LoadNativeLibrary(path, &error)); + } if (!library.is_valid()) { LOG(ERROR) << "Failed to load Pepper module from " << path.value() << " (error: " << error.ToString() << ")"; |