зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
c570406a5e
Коммит
5939be3efc
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче