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

Side by Side Diff: src/log.h

Issue 7864017: Eliminate the need for code delete events in CPU profiler. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fixed test-log/EquivalenceOfLoggingAndTraversal Created 9 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/cpu-profiler-inl.h ('k') | 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 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 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 return logging_nesting_ > 0; 274 return logging_nesting_ > 0;
275 } 275 }
276 276
277 // Pause/Resume collection of profiling data. 277 // Pause/Resume collection of profiling data.
278 // When data collection is paused, CPU Tick events are discarded until 278 // When data collection is paused, CPU Tick events are discarded until
279 // data collection is Resumed. 279 // data collection is Resumed.
280 void PauseProfiler(); 280 void PauseProfiler();
281 void ResumeProfiler(); 281 void ResumeProfiler();
282 bool IsProfilerPaused(); 282 bool IsProfilerPaused();
283 283
284 void LogExistingFunction(SharedFunctionInfo* shared_ptr, Code* code_ptr);
284 // Logs all compiled functions found in the heap. 285 // Logs all compiled functions found in the heap.
285 void LogCompiledFunctions(); 286 void LogCompiledFunctions();
286 // Logs all accessor callbacks found in the heap. 287 // Logs all accessor callbacks found in the heap.
287 void LogAccessorCallbacks(); 288 void LogAccessorCallbacks();
288 // Used for logging stubs found in the snapshot. 289 // Used for logging stubs found in the snapshot.
289 void LogCodeObjects(); 290 void LogCodeObjects();
290 291
291 // Converts tag to a corresponding NATIVE_... if the script is native. 292 // Converts tag to a corresponding NATIVE_... if the script is native.
292 INLINE(static LogEventsAndTags ToNativeByScript(LogEventsAndTags, Script*)); 293 INLINE(static LogEventsAndTags ToNativeByScript(LogEventsAndTags, Script*));
293 294
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 // Class that extracts stack trace, used for profiling. 457 // Class that extracts stack trace, used for profiling.
457 class StackTracer : public AllStatic { 458 class StackTracer : public AllStatic {
458 public: 459 public:
459 static void Trace(Isolate* isolate, TickSample* sample); 460 static void Trace(Isolate* isolate, TickSample* sample);
460 }; 461 };
461 462
462 } } // namespace v8::internal 463 } } // namespace v8::internal
463 464
464 465
465 #endif // V8_LOG_H_ 466 #endif // V8_LOG_H_
OLDNEW
« no previous file with comments | « src/cpu-profiler-inl.h ('k') | src/log.cc » ('j') | src/log.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698