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

Side by Side Diff: src/log.h

Issue 19540012: Logger: extract FLAG_log_code related logging into CodeEventLogger class. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/log.cc » ('j') | src/log.cc » ('J')
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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 // --log-regexp implies --log. 63 // --log-regexp implies --log.
64 // 64 //
65 // --logfile <filename> 65 // --logfile <filename>
66 // Specify the name of the logfile, default is "v8.log". 66 // Specify the name of the logfile, default is "v8.log".
67 // 67 //
68 // --prof 68 // --prof
69 // Collect statistical profiling information (ticks), default is off. The 69 // Collect statistical profiling information (ticks), default is off. The
70 // tick profiler requires code events, so --prof implies --log-code. 70 // tick profiler requires code events, so --prof implies --log-code.
71 71
72 // Forward declarations. 72 // Forward declarations.
73 class CodeEventLogger;
73 class CompilationInfo; 74 class CompilationInfo;
74 class CpuProfiler; 75 class CpuProfiler;
75 class Isolate; 76 class Isolate;
76 class Log; 77 class Log;
77 class PositionsRecorder; 78 class PositionsRecorder;
78 class Profiler; 79 class Profiler;
79 class Semaphore; 80 class Semaphore;
80 class Ticker; 81 class Ticker;
81 struct TickSample; 82 struct TickSample;
82 83
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 446
446 friend class LoggerTestHelper; 447 friend class LoggerTestHelper;
447 448
448 449
449 int logging_nesting_; 450 int logging_nesting_;
450 int cpu_profiler_nesting_; 451 int cpu_profiler_nesting_;
451 452
452 Log* log_; 453 Log* log_;
453 LowLevelLogger* ll_logger_; 454 LowLevelLogger* ll_logger_;
454 JitLogger* jit_logger_; 455 JitLogger* jit_logger_;
456 CodeEventLogger* code_logger_;
455 457
456 NameBuffer* name_buffer_; 458 NameBuffer* name_buffer_;
457 459
458 NameMap* address_to_name_map_; 460 NameMap* address_to_name_map_;
459 461
460 // Guards against multiple calls to TearDown() that can happen in some tests. 462 // Guards against multiple calls to TearDown() that can happen in some tests.
461 // 'true' between SetUp() and TearDown(). 463 // 'true' between SetUp() and TearDown().
462 bool is_initialized_; 464 bool is_initialized_;
463 465
464 // Support for 'incremental addresses' in compressed logs: 466 // Support for 'incremental addresses' in compressed logs:
(...skipping 10 matching lines...) Expand all
475 int64_t epoch_; 477 int64_t epoch_;
476 478
477 friend class CpuProfiler; 479 friend class CpuProfiler;
478 }; 480 };
479 481
480 482
481 } } // namespace v8::internal 483 } } // namespace v8::internal
482 484
483 485
484 #endif // V8_LOG_H_ 486 #endif // V8_LOG_H_
OLDNEW
« no previous file with comments | « no previous file | src/log.cc » ('j') | src/log.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698