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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/log.cc » ('j') | src/log-utils.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/log.h
diff --git a/src/log.h b/src/log.h
index 56cf93d5ffb05fc9b537ebfc08c914452a7bb746..c845feec1f9391763a663888d9750b480ab75c20 100644
--- a/src/log.h
+++ b/src/log.h
@@ -231,6 +231,9 @@ class Logger {
// Logs a StringEvent regardless of whether FLAG_log is true.
static void UncheckedStringEvent(const char* name, const char* value);
+ // Stops logging and profiling in case of insufficient resources.
+ static void StopLoggingAndProfiling();
+
// Returns whether profiler's sampler is active.
static bool IsProfilerSamplerActive();
« 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