Index: src/log.cc |
diff --git a/src/log.cc b/src/log.cc |
index 3abf442d7f5ad50c2bbba43356b4c069e95c2005..416204143b61d97b4c98b93790d454b8f847aad3 100644 |
--- a/src/log.cc |
+++ b/src/log.cc |
@@ -665,8 +665,9 @@ void Profiler::Engage() { |
std::vector<base::OS::SharedLibraryAddress> addresses = |
base::OS::GetSharedLibraryAddresses(); |
for (size_t i = 0; i < addresses.size(); ++i) { |
- LOG(isolate_, SharedLibraryEvent( |
- addresses[i].library_path, addresses[i].start, addresses[i].end)); |
+ LOG(isolate_, |
+ SharedLibraryEvent(addresses[i].library_path, addresses[i].start, |
+ addresses[i].end, addresses[i].aslr_slide)); |
} |
// Start thread processing the profiler buffer. |
@@ -825,14 +826,14 @@ void Logger::ApiSecurityCheck() { |
ApiEvent("api,check-security"); |
} |
- |
void Logger::SharedLibraryEvent(const std::string& library_path, |
- uintptr_t start, |
- uintptr_t end) { |
+ uintptr_t start, uintptr_t end, |
+ intptr_t aslr_slide) { |
if (!log_->IsEnabled() || !FLAG_prof_cpp) return; |
Log::MessageBuilder msg(log_); |
- msg.Append("shared-library,\"%s\",0x%08" V8PRIxPTR ",0x%08" V8PRIxPTR, |
- library_path.c_str(), start, end); |
+ msg.Append("shared-library,\"%s\",0x%08" V8PRIxPTR ",0x%08" V8PRIxPTR |
+ ",%" V8PRIdPTR, |
+ library_path.c_str(), start, end, aslr_slide); |
msg.WriteToLogFile(); |
} |