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

Unified Diff: runtime/vm/dart_api_impl.cc

Issue 2646443005: Track async causal stack traces (Closed)
Patch Set: initialize async_causal_stack_trace_ to NULL Created 3 years, 11 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
Index: runtime/vm/dart_api_impl.cc
diff --git a/runtime/vm/dart_api_impl.cc b/runtime/vm/dart_api_impl.cc
index 69ef30066df019db9ed42f14bb6e38f1bdba78f4..c4e4f54736d9a9aae394798444156e813e081d70 100644
--- a/runtime/vm/dart_api_impl.cc
+++ b/runtime/vm/dart_api_impl.cc
@@ -5112,6 +5112,11 @@ RawString* Api::GetEnvironmentValue(Thread* thread, const String& name) {
if (Symbols::DartIsVM().Equals(name)) {
return Symbols::True().raw();
}
+ if (FLAG_causal_async_stacks) {
+ if (Symbols::DartDeveloperCausalAsyncStacks().Equals(name)) {
+ return Symbols::True().raw();
+ }
+ }
}
return result.raw();
}

Powered by Google App Engine
This is Rietveld 408576698