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

Side by Side Diff: src/log.h

Issue 7276046: Remove "modules" and "tags" of the logging CPU profiler. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 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 | « src/debug-debugger.js ('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 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 void LogRuntime(Vector<const char> format, JSArray* args); 273 void LogRuntime(Vector<const char> format, JSArray* args);
274 274
275 #ifdef ENABLE_LOGGING_AND_PROFILING 275 #ifdef ENABLE_LOGGING_AND_PROFILING
276 bool is_logging() { 276 bool is_logging() {
277 return logging_nesting_ > 0; 277 return logging_nesting_ > 0;
278 } 278 }
279 279
280 // Pause/Resume collection of profiling data. 280 // Pause/Resume collection of profiling data.
281 // When data collection is paused, CPU Tick events are discarded until 281 // When data collection is paused, CPU Tick events are discarded until
282 // data collection is Resumed. 282 // data collection is Resumed.
283 void PauseProfiler(int flags, int tag); 283 void PauseProfiler();
284 void ResumeProfiler(int flags, int tag); 284 void ResumeProfiler();
285 int GetActiveProfilerModules(); 285 bool IsProfilerPaused();
286 286
287 // If logging is performed into a memory buffer, allows to 287 // If logging is performed into a memory buffer, allows to
288 // retrieve previously written messages. See v8.h. 288 // retrieve previously written messages. See v8.h.
289 int GetLogLines(int from_pos, char* dest_buf, int max_size); 289 int GetLogLines(int from_pos, char* dest_buf, int max_size);
290 290
291 // Logs all compiled functions found in the heap. 291 // Logs all compiled functions found in the heap.
292 void LogCompiledFunctions(); 292 void LogCompiledFunctions();
293 // Logs all accessor callbacks found in the heap. 293 // Logs all accessor callbacks found in the heap.
294 void LogAccessorCallbacks(); 294 void LogAccessorCallbacks();
295 // Used for logging stubs found in the snapshot. 295 // Used for logging stubs found in the snapshot.
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 // Class that extracts stack trace, used for profiling. 466 // Class that extracts stack trace, used for profiling.
467 class StackTracer : public AllStatic { 467 class StackTracer : public AllStatic {
468 public: 468 public:
469 static void Trace(Isolate* isolate, TickSample* sample); 469 static void Trace(Isolate* isolate, TickSample* sample);
470 }; 470 };
471 471
472 } } // namespace v8::internal 472 } } // namespace v8::internal
473 473
474 474
475 #endif // V8_LOG_H_ 475 #endif // V8_LOG_H_
OLDNEW
« no previous file with comments | « src/debug-debugger.js ('k') | src/log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698