Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(149)

Unified Diff: src/log.cc

Issue 1934453003: [prof] export slide offset in profile log (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rename Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/log.h ('k') | test/mjsunit/tools/tickprocessor.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « src/log.h ('k') | test/mjsunit/tools/tickprocessor.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698