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

Side by Side Diff: src/log.h

Issue 115859: Handle filling up of memory buffer to make log processing in DevTools Profiler easier. (Closed)
Patch Set: Created 11 years, 7 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
« no previous file with comments | « no previous file | src/log.cc » ('j') | src/log-utils.h » ('J')
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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 static void LogRegExpSource(Handle<JSRegExp> regexp); 224 static void LogRegExpSource(Handle<JSRegExp> regexp);
225 225
226 // Emits a profiler tick event. Used by the profiler thread. 226 // Emits a profiler tick event. Used by the profiler thread.
227 static void TickEvent(TickSample* sample, bool overflow); 227 static void TickEvent(TickSample* sample, bool overflow);
228 228
229 static void ApiEvent(const char* name, ...); 229 static void ApiEvent(const char* name, ...);
230 230
231 // Logs a StringEvent regardless of whether FLAG_log is true. 231 // Logs a StringEvent regardless of whether FLAG_log is true.
232 static void UncheckedStringEvent(const char* name, const char* value); 232 static void UncheckedStringEvent(const char* name, const char* value);
233 233
234 // Stops logging and profiling in case of insufficient resources.
235 static void StopLoggingAndProfiling();
236
234 // Returns whether profiler's sampler is active. 237 // Returns whether profiler's sampler is active.
235 static bool IsProfilerSamplerActive(); 238 static bool IsProfilerSamplerActive();
236 239
237 // The sampler used by the profiler and the sliding state window. 240 // The sampler used by the profiler and the sliding state window.
238 static Ticker* ticker_; 241 static Ticker* ticker_;
239 242
240 // When the statistical profile is active, profiler_ 243 // When the statistical profile is active, profiler_
241 // points to a Profiler, that handles collection 244 // points to a Profiler, that handles collection
242 // of samples. 245 // of samples.
243 static Profiler* profiler_; 246 static Profiler* profiler_;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 void Trace(TickSample* sample); 278 void Trace(TickSample* sample);
276 private: 279 private:
277 280
278 uintptr_t low_stack_bound_; 281 uintptr_t low_stack_bound_;
279 }; 282 };
280 283
281 284
282 } } // namespace v8::internal 285 } } // namespace v8::internal
283 286
284 #endif // V8_LOG_H_ 287 #endif // V8_LOG_H_
OLDNEW
« no previous file with comments | « no previous file | src/log.cc » ('j') | src/log-utils.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698