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

Side by Side Diff: src/log.h

Issue 159787: Add snapshot mode for heap profiling. (Closed)
Patch Set: Reworked to hide explicit GC inside Profiler API Created 11 years, 4 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
« src/api.cc ('K') | « src/api.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 #ifdef ENABLE_LOGGING_AND_PROFILING 242 #ifdef ENABLE_LOGGING_AND_PROFILING
243 static StateTag state() { 243 static StateTag state() {
244 return current_state_ ? current_state_->state() : OTHER; 244 return current_state_ ? current_state_->state() : OTHER;
245 } 245 }
246 246
247 static bool is_logging() { 247 static bool is_logging() {
248 return is_logging_; 248 return is_logging_;
249 } 249 }
250 250
251 // Pause/Resume collection of profiling data. 251 // Pause/Resume collection of profiling data.
252 // When data collection is paused, Tick events are discarded until 252 // When data collection is paused, CPU Tick events are discarded until
253 // data collection is Resumed. 253 // data collection is Resumed.
254 static bool IsProfilerPaused(); 254 static void PauseProfiler(int flags);
255 static void PauseProfiler(); 255 static void ResumeProfiler(int flags);
256 static void ResumeProfiler(); 256 static int GetActiveProfilerModules();
257 257
258 // If logging is performed into a memory buffer, allows to 258 // If logging is performed into a memory buffer, allows to
259 // retrieve previously written messages. See v8.h. 259 // retrieve previously written messages. See v8.h.
260 static int GetLogLines(int from_pos, char* dest_buf, int max_size); 260 static int GetLogLines(int from_pos, char* dest_buf, int max_size);
261 261
262 // Logs all compiled functions found in the heap. 262 // Logs all compiled functions found in the heap.
263 static void LogCompiledFunctions(); 263 static void LogCompiledFunctions();
264 264
265 private: 265 private:
266 266
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 // Class that extracts stack trace, used for profiling. 338 // Class that extracts stack trace, used for profiling.
339 class StackTracer : public AllStatic { 339 class StackTracer : public AllStatic {
340 public: 340 public:
341 static void Trace(TickSample* sample); 341 static void Trace(TickSample* sample);
342 }; 342 };
343 343
344 344
345 } } // namespace v8::internal 345 } } // namespace v8::internal
346 346
347 #endif // V8_LOG_H_ 347 #endif // V8_LOG_H_
OLDNEW
« src/api.cc ('K') | « src/api.cc ('k') | src/log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698