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.
This commit is contained in:
Ehsan Akhgari 2017-05-06 19:57:35 -04:00
Родитель c570406a5e
Коммит 5939be3efc
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -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