Commit 80de467c authored by Patrick Monette's avatar Patrick Monette Committed by Commit Bot

Add a trace event when a module is loaded

Change-Id: I88e07b203bf6aca6a62097256c90f1c35ad373f7
Reviewed-on: https://chromium-review.googlesource.com/c/1368840Reviewed-by: default avatarEtienne Bergeron <etienneb@chromium.org>
Reviewed-by: default avatarLei Zhang <thestig@chromium.org>
Commit-Queue: Patrick Monette <pmonette@chromium.org>
Cr-Commit-Position: refs/heads/master@{#616085}
parent 23e30de5
......@@ -29,6 +29,7 @@
#include "base/strings/utf_string_conversions.h"
#include "base/task/post_task.h"
#include "base/threading/sequenced_task_runner_handle.h"
#include "base/trace_event/trace_event.h"
#include "base/version.h"
#include "base/win/pe_image.h"
#include "base/win/registry.h"
......@@ -328,6 +329,9 @@ bool TryGetModuleTimeDateStamp(void* module_load_address,
// Used as the callback for ModuleWatcher events in this process. Dispatches
// them to the ModuleDatabase.
void OnModuleEvent(const ModuleWatcher::ModuleEvent& event) {
TRACE_EVENT1("browser", "OnModuleEvent", "module_path",
event.module_path.BaseName().AsUTF8Unsafe());
auto* module_database = ModuleDatabase::GetInstance();
switch (event.event_type) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment