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

Side by Side Diff: src/log.h

Issue 2105943002: Expose TickSample and its APIs in v8-profiler.h (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase Created 4 years, 5 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/api.cc ('k') | src/log.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 #ifndef V8_LOG_H_ 5 #ifndef V8_LOG_H_
6 #define V8_LOG_H_ 6 #define V8_LOG_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 // Collect statistical profiling information (ticks), default is off. The 61 // Collect statistical profiling information (ticks), default is off. The
62 // tick profiler requires code events, so --prof implies --log-code. 62 // tick profiler requires code events, so --prof implies --log-code.
63 63
64 // Forward declarations. 64 // Forward declarations.
65 class CodeEventListener; 65 class CodeEventListener;
66 class CpuProfiler; 66 class CpuProfiler;
67 class Isolate; 67 class Isolate;
68 class Log; 68 class Log;
69 class Profiler; 69 class Profiler;
70 class Ticker; 70 class Ticker;
71 class RuntimeCallTimer;
71 struct TickSample; 72 struct TickSample;
72 class RuntimeCallTimer;
73 73
74 #undef LOG 74 #undef LOG
75 #define LOG(isolate, Call) \ 75 #define LOG(isolate, Call) \
76 do { \ 76 do { \
77 v8::internal::Logger* logger = (isolate)->logger(); \ 77 v8::internal::Logger* logger = (isolate)->logger(); \
78 if (logger->is_logging()) logger->Call; \ 78 if (logger->is_logging()) logger->Call; \
79 } while (false) 79 } while (false)
80 80
81 #define LOG_CODE_EVENT(isolate, Call) \ 81 #define LOG_CODE_EVENT(isolate, Call) \
82 do { \ 82 do { \
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 423
424 NameBuffer* name_buffer_; 424 NameBuffer* name_buffer_;
425 }; 425 };
426 426
427 427
428 } // namespace internal 428 } // namespace internal
429 } // namespace v8 429 } // namespace v8
430 430
431 431
432 #endif // V8_LOG_H_ 432 #endif // V8_LOG_H_
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698