| Index: runtime/vm/service.cc
|
| diff --git a/runtime/vm/service.cc b/runtime/vm/service.cc
|
| index 3353228e860062b857f37fb48ecf4f20621393a8..c456fee51e9516a6f5088e970b5e4f7e47cf6322 100644
|
| --- a/runtime/vm/service.cc
|
| +++ b/runtime/vm/service.cc
|
| @@ -1340,6 +1340,8 @@ static bool GetStack(Thread* thread, JSONStream* js) {
|
| }
|
| ASSERT(isolate->compilation_allowed());
|
| DebuggerStackTrace* stack = isolate->debugger()->StackTrace();
|
| + DebuggerStackTrace* async_causal_stack =
|
| + isolate->debugger()->AsyncCausalStackTrace();
|
| // Do we want the complete script object and complete local variable objects?
|
| // This is true for dump requests.
|
| const bool full = BoolParameter::Parse(js->LookupParam("_full"), false);
|
| @@ -1357,6 +1359,17 @@ static bool GetStack(Thread* thread, JSONStream* js) {
|
| }
|
| }
|
|
|
| + if (async_causal_stack != NULL) {
|
| + JSONArray jsarr(&jsobj, "asyncCausalFrames");
|
| + intptr_t num_frames = async_causal_stack->Length();
|
| + for (intptr_t i = 0; i < num_frames; i++) {
|
| + ActivationFrame* frame = async_causal_stack->FrameAt(i);
|
| + JSONObject jsobj(&jsarr);
|
| + frame->PrintToJSONObject(&jsobj, full);
|
| + jsobj.AddProperty("index", i);
|
| + }
|
| + }
|
| +
|
| {
|
| MessageHandler::AcquiredQueues aq(isolate->message_handler());
|
| jsobj.AddProperty("messages", aq.queue());
|
|
|