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

Side by Side Diff: src/perf-jit.h

Issue 1993653003: Initial support for emitting unwinding information in perf jitdump. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Enable with --perf-prof-unwinding-info. Created 4 years, 6 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 | « src/objects-inl.h ('k') | src/perf-jit.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 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 static const char kFilenameFormatString[]; 59 static const char kFilenameFormatString[];
60 static const int kFilenameBufferPadding; 60 static const int kFilenameBufferPadding;
61 61
62 // File buffer size of the low-level log. We don't use the default to 62 // File buffer size of the low-level log. We don't use the default to
63 // minimize the associated overhead. 63 // minimize the associated overhead.
64 static const int kLogBufferSize = 2 * MB; 64 static const int kLogBufferSize = 2 * MB;
65 65
66 void LogWriteBytes(const char* bytes, int size); 66 void LogWriteBytes(const char* bytes, int size);
67 void LogWriteHeader(); 67 void LogWriteHeader();
68 void LogWriteDebugInfo(Code* code, SharedFunctionInfo* shared); 68 void LogWriteDebugInfo(Code* code, SharedFunctionInfo* shared);
69 void LogWriteUnwindingInfo(Code* code);
69 70
70 static const uint32_t kElfMachIA32 = 3; 71 static const uint32_t kElfMachIA32 = 3;
71 static const uint32_t kElfMachX64 = 62; 72 static const uint32_t kElfMachX64 = 62;
72 static const uint32_t kElfMachARM = 40; 73 static const uint32_t kElfMachARM = 40;
73 static const uint32_t kElfMachMIPS = 10; 74 static const uint32_t kElfMachMIPS = 10;
74 static const uint32_t kElfMachARM64 = 183; 75 static const uint32_t kElfMachARM64 = 183;
75 76
76 uint32_t GetElfMach() { 77 uint32_t GetElfMach() {
77 #if V8_TARGET_ARCH_IA32 78 #if V8_TARGET_ARCH_IA32
78 return kElfMachIA32; 79 return kElfMachIA32;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 void LogRecordedBuffer(AbstractCode* code, SharedFunctionInfo* shared, 117 void LogRecordedBuffer(AbstractCode* code, SharedFunctionInfo* shared,
117 const char* name, int length) override { 118 const char* name, int length) override {
118 UNIMPLEMENTED(); 119 UNIMPLEMENTED();
119 } 120 }
120 }; 121 };
121 122
122 #endif // V8_OS_LINUX 123 #endif // V8_OS_LINUX
123 } // namespace internal 124 } // namespace internal
124 } // namespace v8 125 } // namespace v8
125 #endif 126 #endif
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | src/perf-jit.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698