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

Side by Side Diff: src/log.h

Issue 13526003: No need to start Ticker for Crankshaft (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 8 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/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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 }; 161 };
162 #undef DECLARE_ENUM 162 #undef DECLARE_ENUM
163 163
164 // Acquires resources for logging if the right flags are set. 164 // Acquires resources for logging if the right flags are set.
165 bool SetUp(); 165 bool SetUp();
166 166
167 // Sets the current code event handler. 167 // Sets the current code event handler.
168 void SetCodeEventHandler(uint32_t options, 168 void SetCodeEventHandler(uint32_t options,
169 JitCodeEventHandler event_handler); 169 JitCodeEventHandler event_handler);
170 170
171 void EnsureTickerStarted();
172 void EnsureTickerStopped();
173
174 Sampler* sampler(); 171 Sampler* sampler();
175 172
176 // Frees resources acquired in SetUp. 173 // Frees resources acquired in SetUp.
177 // When a temporary file is used for the log, returns its stream descriptor, 174 // When a temporary file is used for the log, returns its stream descriptor,
178 // leaving the file open. 175 // leaving the file open.
179 FILE* TearDown(); 176 FILE* TearDown();
180 177
181 // Emits an event with a string value -> (name, value). 178 // Emits an event with a string value -> (name, value).
182 void StringEvent(const char* name, const char* value); 179 void StringEvent(const char* name, const char* value);
183 180
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 438
442 void ApiEvent(const char* name, ...); 439 void ApiEvent(const char* name, ...);
443 440
444 // Logs a StringEvent regardless of whether FLAG_log is true. 441 // Logs a StringEvent regardless of whether FLAG_log is true.
445 void UncheckedStringEvent(const char* name, const char* value); 442 void UncheckedStringEvent(const char* name, const char* value);
446 443
447 // Logs an IntEvent regardless of whether FLAG_log is true. 444 // Logs an IntEvent regardless of whether FLAG_log is true.
448 void UncheckedIntEvent(const char* name, int value); 445 void UncheckedIntEvent(const char* name, int value);
449 void UncheckedIntPtrTEvent(const char* name, intptr_t value); 446 void UncheckedIntPtrTEvent(const char* name, intptr_t value);
450 447
451 // Returns whether profiler's sampler is active.
452 bool IsProfilerSamplerActive();
453
454 Isolate* isolate_; 448 Isolate* isolate_;
455 449
456 // The sampler used by the profiler and the sliding state window. 450 // The sampler used by the profiler and the sliding state window.
457 Ticker* ticker_; 451 Ticker* ticker_;
458 452
459 // When the statistical profile is active, profiler_ 453 // When the statistical profile is active, profiler_
460 // points to a Profiler, that handles collection 454 // points to a Profiler, that handles collection
461 // of samples. 455 // of samples.
462 Profiler* profiler_; 456 Profiler* profiler_;
463 457
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 // Class that extracts stack trace, used for profiling. 541 // Class that extracts stack trace, used for profiling.
548 class StackTracer : public AllStatic { 542 class StackTracer : public AllStatic {
549 public: 543 public:
550 static void Trace(Isolate* isolate, TickSample* sample); 544 static void Trace(Isolate* isolate, TickSample* sample);
551 }; 545 };
552 546
553 } } // namespace v8::internal 547 } } // namespace v8::internal
554 548
555 549
556 #endif // V8_LOG_H_ 550 #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