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

Side by Side Diff: src/log.h

Issue 9227007: Version 3.8.6 (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 8 years, 11 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/liveobjectlist-inl.h ('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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 class Logger { 143 class Logger {
144 public: 144 public:
145 #define DECLARE_ENUM(enum_item, ignore) enum_item, 145 #define DECLARE_ENUM(enum_item, ignore) enum_item,
146 enum LogEventsAndTags { 146 enum LogEventsAndTags {
147 LOG_EVENTS_AND_TAGS_LIST(DECLARE_ENUM) 147 LOG_EVENTS_AND_TAGS_LIST(DECLARE_ENUM)
148 NUMBER_OF_LOG_EVENTS 148 NUMBER_OF_LOG_EVENTS
149 }; 149 };
150 #undef DECLARE_ENUM 150 #undef DECLARE_ENUM
151 151
152 // Acquires resources for logging if the right flags are set. 152 // Acquires resources for logging if the right flags are set.
153 bool Setup(); 153 bool SetUp();
154 154
155 void EnsureTickerStarted(); 155 void EnsureTickerStarted();
156 void EnsureTickerStopped(); 156 void EnsureTickerStopped();
157 157
158 Sampler* sampler(); 158 Sampler* sampler();
159 159
160 // Frees resources acquired in Setup. 160 // Frees resources acquired in SetUp.
161 // When a temporary file is used for the log, returns its stream descriptor, 161 // When a temporary file is used for the log, returns its stream descriptor,
162 // leaving the file open. 162 // leaving the file open.
163 FILE* TearDown(); 163 FILE* TearDown();
164 164
165 // Enable the computation of a sliding window of states. 165 // Enable the computation of a sliding window of states.
166 void EnableSlidingStateWindow(); 166 void EnableSlidingStateWindow();
167 167
168 // Emits an event with a string value -> (name, value). 168 // Emits an event with a string value -> (name, value).
169 void StringEvent(const char* name, const char* value); 169 void StringEvent(const char* name, const char* value);
170 170
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 int logging_nesting_; 404 int logging_nesting_;
405 int cpu_profiler_nesting_; 405 int cpu_profiler_nesting_;
406 406
407 Log* log_; 407 Log* log_;
408 408
409 NameBuffer* name_buffer_; 409 NameBuffer* name_buffer_;
410 410
411 NameMap* address_to_name_map_; 411 NameMap* address_to_name_map_;
412 412
413 // Guards against multiple calls to TearDown() that can happen in some tests. 413 // Guards against multiple calls to TearDown() that can happen in some tests.
414 // 'true' between Setup() and TearDown(). 414 // 'true' between SetUp() and TearDown().
415 bool is_initialized_; 415 bool is_initialized_;
416 416
417 // Support for 'incremental addresses' in compressed logs: 417 // Support for 'incremental addresses' in compressed logs:
418 // LogMessageBuilder::AppendAddress(Address addr) 418 // LogMessageBuilder::AppendAddress(Address addr)
419 Address last_address_; 419 Address last_address_;
420 // Logger::TickEvent(...) 420 // Logger::TickEvent(...)
421 Address prev_sp_; 421 Address prev_sp_;
422 Address prev_function_; 422 Address prev_function_;
423 // Logger::MoveEventInternal(...) 423 // Logger::MoveEventInternal(...)
424 Address prev_to_; 424 Address prev_to_;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 // Class that extracts stack trace, used for profiling. 465 // Class that extracts stack trace, used for profiling.
466 class StackTracer : public AllStatic { 466 class StackTracer : public AllStatic {
467 public: 467 public:
468 static void Trace(Isolate* isolate, TickSample* sample); 468 static void Trace(Isolate* isolate, TickSample* sample);
469 }; 469 };
470 470
471 } } // namespace v8::internal 471 } } // namespace v8::internal
472 472
473 473
474 #endif // V8_LOG_H_ 474 #endif // V8_LOG_H_
OLDNEW
« no previous file with comments | « src/liveobjectlist-inl.h ('k') | src/log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698