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

Side by Side Diff: src/log.h

Issue 70013002: Support for the Linux 'perf report' and 'perf annotate' tools. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebase Created 7 years 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/isolate.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 // 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 V(STORE_POLYMORPHIC_IC_TAG, "StorePolymorphicIC") \ 147 V(STORE_POLYMORPHIC_IC_TAG, "StorePolymorphicIC") \
148 V(STUB_TAG, "Stub") \ 148 V(STUB_TAG, "Stub") \
149 V(NATIVE_FUNCTION_TAG, "Function") \ 149 V(NATIVE_FUNCTION_TAG, "Function") \
150 V(NATIVE_LAZY_COMPILE_TAG, "LazyCompile") \ 150 V(NATIVE_LAZY_COMPILE_TAG, "LazyCompile") \
151 V(NATIVE_SCRIPT_TAG, "Script") 151 V(NATIVE_SCRIPT_TAG, "Script")
152 // Note that 'NATIVE_' cases for functions and scripts are mapped onto 152 // Note that 'NATIVE_' cases for functions and scripts are mapped onto
153 // original tags when writing to the log. 153 // original tags when writing to the log.
154 154
155 155
156 class JitLogger; 156 class JitLogger;
157 class PerfBasicLogger;
157 class LowLevelLogger; 158 class LowLevelLogger;
159 class PerfJitLogger;
158 class Sampler; 160 class Sampler;
159 161
160 class Logger { 162 class Logger {
161 public: 163 public:
162 #define DECLARE_ENUM(enum_item, ignore) enum_item, 164 #define DECLARE_ENUM(enum_item, ignore) enum_item,
163 enum LogEventsAndTags { 165 enum LogEventsAndTags {
164 LOG_EVENTS_AND_TAGS_LIST(DECLARE_ENUM) 166 LOG_EVENTS_AND_TAGS_LIST(DECLARE_ENUM)
165 NUMBER_OF_LOG_EVENTS 167 NUMBER_OF_LOG_EVENTS
166 }; 168 };
167 #undef DECLARE_ENUM 169 #undef DECLARE_ENUM
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 // private members. 432 // private members.
431 friend class EventLog; 433 friend class EventLog;
432 friend class Isolate; 434 friend class Isolate;
433 friend class TimeLog; 435 friend class TimeLog;
434 friend class Profiler; 436 friend class Profiler;
435 template <StateTag Tag> friend class VMState; 437 template <StateTag Tag> friend class VMState;
436 friend class LoggerTestHelper; 438 friend class LoggerTestHelper;
437 439
438 bool is_logging_; 440 bool is_logging_;
439 Log* log_; 441 Log* log_;
442 PerfBasicLogger* perf_basic_logger_;
443 PerfJitLogger* perf_jit_logger_;
440 LowLevelLogger* ll_logger_; 444 LowLevelLogger* ll_logger_;
441 JitLogger* jit_logger_; 445 JitLogger* jit_logger_;
442 List<CodeEventListener*> listeners_; 446 List<CodeEventListener*> listeners_;
443 447
444 // Guards against multiple calls to TearDown() that can happen in some tests. 448 // Guards against multiple calls to TearDown() that can happen in some tests.
445 // 'true' between SetUp() and TearDown(). 449 // 'true' between SetUp() and TearDown().
446 bool is_initialized_; 450 bool is_initialized_;
447 451
448 ElapsedTimer timer_; 452 ElapsedTimer timer_;
449 453
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 int length) = 0; 532 int length) = 0;
529 533
530 NameBuffer* name_buffer_; 534 NameBuffer* name_buffer_;
531 }; 535 };
532 536
533 537
534 } } // namespace v8::internal 538 } } // namespace v8::internal
535 539
536 540
537 #endif // V8_LOG_H_ 541 #endif // V8_LOG_H_
OLDNEW
« no previous file with comments | « src/isolate.cc ('k') | src/log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698