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

Side by Side Diff: src/cpu-profiler.h

Issue 10795074: Add a new API V8::SetJitCodeEventHandler to push code name and location to users such as profilers. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix instruction address calculation on move events. Fix test use of map, fix compilation on Win64. Created 8 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « src/compiler.cc ('k') | src/heap.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 // 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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 UnboundQueue<CodeEventsContainer> events_buffer_; 181 UnboundQueue<CodeEventsContainer> events_buffer_;
182 SamplingCircularQueue ticks_buffer_; 182 SamplingCircularQueue ticks_buffer_;
183 UnboundQueue<TickSampleEventRecord> ticks_from_vm_buffer_; 183 UnboundQueue<TickSampleEventRecord> ticks_from_vm_buffer_;
184 unsigned enqueue_order_; 184 unsigned enqueue_order_;
185 }; 185 };
186 186
187 } } // namespace v8::internal 187 } } // namespace v8::internal
188 188
189 189
190 #define PROFILE(isolate, Call) \ 190 #define PROFILE(isolate, Call) \
191 LOG(isolate, Call); \ 191 LOG_CODE_EVENT(isolate, Call); \
192 do { \ 192 do { \
193 if (v8::internal::CpuProfiler::is_profiling(isolate)) { \ 193 if (v8::internal::CpuProfiler::is_profiling(isolate)) { \
194 v8::internal::CpuProfiler::Call; \ 194 v8::internal::CpuProfiler::Call; \
195 } \ 195 } \
196 } while (false) 196 } while (false)
197 197
198 198
199 namespace v8 { 199 namespace v8 {
200 namespace internal { 200 namespace internal {
201 201
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 Atomic32 is_profiling_; 274 Atomic32 is_profiling_;
275 275
276 private: 276 private:
277 DISALLOW_COPY_AND_ASSIGN(CpuProfiler); 277 DISALLOW_COPY_AND_ASSIGN(CpuProfiler);
278 }; 278 };
279 279
280 } } // namespace v8::internal 280 } } // namespace v8::internal
281 281
282 282
283 #endif // V8_CPU_PROFILER_H_ 283 #endif // V8_CPU_PROFILER_H_
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698