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

Side by Side Diff: src/log.h

Issue 2050713002: [--prof] Adding support for RuntimeCallTimerScope based tick separation (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: reverting flag changes 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/counters.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 61
62 // Forward declarations. 62 // Forward declarations.
63 class CodeEventListener; 63 class CodeEventListener;
64 class CpuProfiler; 64 class CpuProfiler;
65 class Isolate; 65 class Isolate;
66 class Log; 66 class Log;
67 class PositionsRecorder; 67 class PositionsRecorder;
68 class Profiler; 68 class Profiler;
69 class Ticker; 69 class Ticker;
70 struct TickSample; 70 struct TickSample;
71 class RuntimeCallTimer;
71 72
72 #undef LOG 73 #undef LOG
73 #define LOG(isolate, Call) \ 74 #define LOG(isolate, Call) \
74 do { \ 75 do { \
75 v8::internal::Logger* logger = \ 76 v8::internal::Logger* logger = \
76 (isolate)->logger(); \ 77 (isolate)->logger(); \
77 if (logger->is_logging()) \ 78 if (logger->is_logging()) \
78 logger->Call; \ 79 logger->Call; \
79 } while (false) 80 } while (false)
80 81
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 void MoveEventInternal(LogEventsAndTags event, Address from, Address to); 348 void MoveEventInternal(LogEventsAndTags event, Address from, Address to);
348 349
349 // Used for logging stubs found in the snapshot. 350 // Used for logging stubs found in the snapshot.
350 void LogCodeObject(Object* code_object); 351 void LogCodeObject(Object* code_object);
351 352
352 // Helper method. It resets name_buffer_ and add tag name into it. 353 // Helper method. It resets name_buffer_ and add tag name into it.
353 void InitNameBuffer(LogEventsAndTags tag); 354 void InitNameBuffer(LogEventsAndTags tag);
354 355
355 // Emits a profiler tick event. Used by the profiler thread. 356 // Emits a profiler tick event. Used by the profiler thread.
356 void TickEvent(TickSample* sample, bool overflow); 357 void TickEvent(TickSample* sample, bool overflow);
358 void RuntimeCallTimerEvent();
357 359
358 PRINTF_FORMAT(2, 3) void ApiEvent(const char* format, ...); 360 PRINTF_FORMAT(2, 3) void ApiEvent(const char* format, ...);
359 361
360 // Logs a StringEvent regardless of whether FLAG_log is true. 362 // Logs a StringEvent regardless of whether FLAG_log is true.
361 void UncheckedStringEvent(const char* name, const char* value); 363 void UncheckedStringEvent(const char* name, const char* value);
362 364
363 // Logs an IntEvent regardless of whether FLAG_log is true. 365 // Logs an IntEvent regardless of whether FLAG_log is true.
364 void UncheckedIntEvent(const char* name, int value); 366 void UncheckedIntEvent(const char* name, int value);
365 void UncheckedIntPtrTEvent(const char* name, intptr_t value); 367 void UncheckedIntPtrTEvent(const char* name, intptr_t value);
366 368
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
520 522
521 NameBuffer* name_buffer_; 523 NameBuffer* name_buffer_;
522 }; 524 };
523 525
524 526
525 } // namespace internal 527 } // namespace internal
526 } // namespace v8 528 } // namespace v8
527 529
528 530
529 #endif // V8_LOG_H_ 531 #endif // V8_LOG_H_
OLDNEW
« no previous file with comments | « src/counters.cc ('k') | src/log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698