From 5939be3efcaf35d408871697ae17bd0e34c38072 Mon Sep 17 00:00:00 2001 From: Ehsan Akhgari Date: Sat, 6 May 2017 19:57:35 -0400 Subject: [PATCH] Bug 1362814 - Add a Gecko Profiler label to patched_LdrLoadDll(); r=mstange This allows us to easily identify the name of the DLL being loaded in a profile. --- mozglue/build/WindowsDllBlocklist.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mozglue/build/WindowsDllBlocklist.cpp b/mozglue/build/WindowsDllBlocklist.cpp index cbfd4c557b24..4e9bddb48ada 100644 --- a/mozglue/build/WindowsDllBlocklist.cpp +++ b/mozglue/build/WindowsDllBlocklist.cpp @@ -32,6 +32,7 @@ #include "mozilla/WindowsVersion.h" #include "nsWindowsHelpers.h" #include "WindowsDllBlocklist.h" +#include "GeckoProfiler.h" using namespace mozilla; @@ -607,6 +608,9 @@ patched_LdrLoadDll (PWCHAR filePath, PULONG flags, PUNICODE_STRING moduleFileNam dllName[len] = 0; + PROFILER_LABEL_DYNAMIC("WindowsDllBlocklist", "patched_LdrLoadDll", + js::ProfileEntry::Category::OTHER, dllName); + #ifdef DEBUG_very_verbose printf_stderr("LdrLoadDll: dll name '%s'\n", dllName); #endif