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

Unified Diff: src/libplatform/default-platform.cc

Issue 2854173002: Make in process stack dumping optional. (Closed)
Patch Set: Address comments Created 3 years, 8 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 | « src/d8.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/libplatform/default-platform.cc
diff --git a/src/libplatform/default-platform.cc b/src/libplatform/default-platform.cc
index 5cd80ad316dd2f90b69dcc38ae7ccc3f3212408a..93dff69709b9e450ae7ac51587e4b91c457bc296 100644
--- a/src/libplatform/default-platform.cc
+++ b/src/libplatform/default-platform.cc
@@ -29,9 +29,12 @@ void PrintStackTrace() {
} // namespace
-v8::Platform* CreateDefaultPlatform(int thread_pool_size,
- IdleTaskSupport idle_task_support) {
- v8::base::debug::EnableInProcessStackDumping();
+v8::Platform* CreateDefaultPlatform(
+ int thread_pool_size, IdleTaskSupport idle_task_support,
+ InProcessStackDumping in_process_stack_dumping) {
+ if (in_process_stack_dumping == InProcessStackDumping::kEnabled) {
+ v8::base::debug::EnableInProcessStackDumping();
+ }
DefaultPlatform* platform = new DefaultPlatform(idle_task_support);
platform->SetThreadPoolSize(thread_pool_size);
platform->EnsureInitialized();
« no previous file with comments | « src/d8.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698