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

Unified Diff: runtime/vm/dart_api_impl.cc

Issue 2646443005: Track async causal stack traces (Closed)
Patch Set: rebase Created 3 years, 10 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 | « runtime/vm/dart.cc ('k') | runtime/vm/debugger.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/dart_api_impl.cc
diff --git a/runtime/vm/dart_api_impl.cc b/runtime/vm/dart_api_impl.cc
index ee95896ceb1d435266f6497ed811daafe98321a5..71cef9f50143a18d062259a2828ec31c1914691c 100644
--- a/runtime/vm/dart_api_impl.cc
+++ b/runtime/vm/dart_api_impl.cc
@@ -5114,6 +5114,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();
}
« no previous file with comments | « runtime/vm/dart.cc ('k') | runtime/vm/debugger.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698