// Creates an array to respond to the Xenon PHP extension; // builds the data into the format neeeded. Array XenonRequestLocalData::createResponse() { Array stacks; for (ArrayIter it(m_stackSnapshots); it; ++it) { Array frame = it.second().toArray(); Array element; element.set(s_time, frame[s_time], true); element.set(s_phpStack, parsePhpStack(frame[s_phpStack].toArray()), true); element.set(s_asyncStack, frame[s_asyncStack], true); element.set(s_isWait, frame[s_isWait], true); stacks.append(element); } return stacks; }
// Creates an array to respond to the Xenon PHP extension; // builds the data into the format neeeded. Array XenonRequestLocalData::createResponse() { PackedArrayInit stacks(m_stackSnapshots.size()); for (ArrayIter it(m_stackSnapshots); it; ++it) { const auto& frame = it.second().toArray(); stacks.append(make_map_array( s_time, frame[s_time], s_stack, frame[s_stack].toArray(), s_phpStack, parsePhpStack(frame[s_stack].toArray()), s_isWait, frame[s_isWait] )); } return stacks.toArray(); }