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

Side by Side Diff: src/log.h

Issue 23478010: Remove deprecated profiler API (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 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/flag-definitions.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 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 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 333
334 // ==== Events logged by --log-regexp ==== 334 // ==== Events logged by --log-regexp ====
335 // Regexp compilation and execution events. 335 // Regexp compilation and execution events.
336 336
337 void RegExpCompileEvent(Handle<JSRegExp> regexp, bool in_cache); 337 void RegExpCompileEvent(Handle<JSRegExp> regexp, bool in_cache);
338 338
339 // Log an event reported from generated code 339 // Log an event reported from generated code
340 void LogRuntime(Vector<const char> format, JSArray* args); 340 void LogRuntime(Vector<const char> format, JSArray* args);
341 341
342 bool is_logging() { 342 bool is_logging() {
343 return logging_nesting_ > 0; 343 return is_logging_;
344 } 344 }
345 345
346 bool is_logging_code_events() { 346 bool is_logging_code_events() {
347 return is_logging() || jit_logger_ != NULL; 347 return is_logging() || jit_logger_ != NULL;
348 } 348 }
349 349
350 // Pause/Resume collection of profiling data. 350 // Stop collection of profiling data.
351 // When data collection is paused, CPU Tick events are discarded until 351 // When data collection is paused, CPU Tick events are discarded.
352 // data collection is Resumed. 352 void StopProfiler();
353 void PauseProfiler();
354 void ResumeProfiler();
355 bool IsProfilerPaused();
356 353
357 void LogExistingFunction(Handle<SharedFunctionInfo> shared, 354 void LogExistingFunction(Handle<SharedFunctionInfo> shared,
358 Handle<Code> code); 355 Handle<Code> code);
359 // Logs all compiled functions found in the heap. 356 // Logs all compiled functions found in the heap.
360 void LogCompiledFunctions(); 357 void LogCompiledFunctions();
361 // Logs all accessor callbacks found in the heap. 358 // Logs all accessor callbacks found in the heap.
362 void LogAccessorCallbacks(); 359 void LogAccessorCallbacks();
363 // Used for logging stubs found in the snapshot. 360 // Used for logging stubs found in the snapshot.
364 void LogCodeObjects(); 361 void LogCodeObjects();
365 362
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 // An array of log events names. 424 // An array of log events names.
428 const char* const* log_events_; 425 const char* const* log_events_;
429 426
430 // Internal implementation classes with access to 427 // Internal implementation classes with access to
431 // private members. 428 // private members.
432 friend class EventLog; 429 friend class EventLog;
433 friend class Isolate; 430 friend class Isolate;
434 friend class TimeLog; 431 friend class TimeLog;
435 friend class Profiler; 432 friend class Profiler;
436 template <StateTag Tag> friend class VMState; 433 template <StateTag Tag> friend class VMState;
437
438 friend class LoggerTestHelper; 434 friend class LoggerTestHelper;
439 435
440 436 bool is_logging_;
441 int logging_nesting_;
442 int cpu_profiler_nesting_;
443
444 Log* log_; 437 Log* log_;
445 LowLevelLogger* ll_logger_; 438 LowLevelLogger* ll_logger_;
446 JitLogger* jit_logger_; 439 JitLogger* jit_logger_;
447 List<CodeEventListener*> listeners_; 440 List<CodeEventListener*> listeners_;
448 441
449 // Guards against multiple calls to TearDown() that can happen in some tests. 442 // Guards against multiple calls to TearDown() that can happen in some tests.
450 // 'true' between SetUp() and TearDown(). 443 // 'true' between SetUp() and TearDown().
451 bool is_initialized_; 444 bool is_initialized_;
452 445
453 int64_t epoch_; 446 int64_t epoch_;
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
533 int length) = 0; 526 int length) = 0;
534 527
535 NameBuffer* name_buffer_; 528 NameBuffer* name_buffer_;
536 }; 529 };
537 530
538 531
539 } } // namespace v8::internal 532 } } // namespace v8::internal
540 533
541 534
542 #endif // V8_LOG_H_ 535 #endif // V8_LOG_H_
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698