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

Side by Side Diff: src/base/platform/platform.h

Issue 1934453003: [prof] export slide offset in profile log (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 7 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 unified diff | Download patch
« no previous file with comments | « no previous file | src/base/platform/platform-macos.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This module contains the platform-specific code. This make the rest of the 5 // This module contains the platform-specific code. This make the rest of the
6 // code less dependent on operating system, compilers and runtime libraries. 6 // code less dependent on operating system, compilers and runtime libraries.
7 // This module does specifically not deal with differences between different 7 // This module does specifically not deal with differences between different
8 // processor architecture. 8 // processor architecture.
9 // The platform classes have the same definition for all platforms. The 9 // The platform classes have the same definition for all platforms. The
10 // implementation for a particular platform is put in platform_<os>.cc. 10 // implementation for a particular platform is put in platform_<os>.cc.
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 const char* format, va_list args); 230 const char* format, va_list args);
231 231
232 static char* StrChr(char* str, int c); 232 static char* StrChr(char* str, int c);
233 static void StrNCpy(char* dest, int length, const char* src, size_t n); 233 static void StrNCpy(char* dest, int length, const char* src, size_t n);
234 234
235 // Support for the profiler. Can do nothing, in which case ticks 235 // Support for the profiler. Can do nothing, in which case ticks
236 // occuring in shared libraries will not be properly accounted for. 236 // occuring in shared libraries will not be properly accounted for.
237 struct SharedLibraryAddress { 237 struct SharedLibraryAddress {
238 SharedLibraryAddress( 238 SharedLibraryAddress(
239 const std::string& library_path, uintptr_t start, uintptr_t end) 239 const std::string& library_path, uintptr_t start, uintptr_t end)
240 : library_path(library_path), start(start), end(end) {} 240 : library_path(library_path), start(start), end(end), slide(0) {}
241 SharedLibraryAddress(
242 const std::string& library_path, uintptr_t start, uintptr_t end,
243 uintptr_t slide)
244 : library_path(library_path), start(start), end(end), slide(slide) {}
noordhuis 2016/04/30 10:37:10 I think this should use intptr_t for the slide bec
fedor.indutny 2016/04/30 19:54:50 Acknowledged.
241 245
242 std::string library_path; 246 std::string library_path;
243 uintptr_t start; 247 uintptr_t start;
244 uintptr_t end; 248 uintptr_t end;
249 uintptr_t slide;
245 }; 250 };
246 251
247 static std::vector<SharedLibraryAddress> GetSharedLibraryAddresses(); 252 static std::vector<SharedLibraryAddress> GetSharedLibraryAddresses();
248 253
249 // Support for the profiler. Notifies the external profiling 254 // Support for the profiler. Notifies the external profiling
250 // process that a code moving garbage collection starts. Can do 255 // process that a code moving garbage collection starts. Can do
251 // nothing, in which case the code objects must not move (e.g., by 256 // nothing, in which case the code objects must not move (e.g., by
252 // using --never-compact) if accurate profiling is desired. 257 // using --never-compact) if accurate profiling is desired.
253 static void SignalCodeMovingGC(); 258 static void SignalCodeMovingGC();
254 259
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 int stack_size_; 487 int stack_size_;
483 Semaphore* start_semaphore_; 488 Semaphore* start_semaphore_;
484 489
485 DISALLOW_COPY_AND_ASSIGN(Thread); 490 DISALLOW_COPY_AND_ASSIGN(Thread);
486 }; 491 };
487 492
488 } // namespace base 493 } // namespace base
489 } // namespace v8 494 } // namespace v8
490 495
491 #endif // V8_BASE_PLATFORM_PLATFORM_H_ 496 #endif // V8_BASE_PLATFORM_PLATFORM_H_
OLDNEW
« no previous file with comments | « no previous file | src/base/platform/platform-macos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698